-
Notifications
You must be signed in to change notification settings - Fork 43
Changing parseInt of lineHeight to parseFloat to avoid rounding errors #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Please add unit tests to cover your use case and to be sure nothing else is broken |
I'd like to suggest you another approach to fix that:
What do you think? |
Yes it's correct. But I'm not sure someone will one day say: I want 1.6 lines :) ( So I think the best think to do is: @rogeriotaques Can you create a PR with a fix and with test? @drukepple did not answer. Or if you are patient I will do it myself. This fix will be in the version 1.2 anyway |
Fabien,
I'm so sorry for this late reply. I've had busy days lately and could not
manage to reply or pull request.
…On Wed, 19 Oct 2016 at 22:42 Fabien Rogeret ***@***.***> wrote:
Yes it's correct. But I'm not sure someone will one day say: I want 1.6
lines :) (``this.options.lines).
So I think the best think to do is:
this.options.maxHeight = Math.round(parseFloat(this.options.lines)) *
parseFloat(this.options.lineHeight));
@rogeriotaques <https://github.com/rogeriotaques> Can you create a PR
with a fix and with test? @drukepple <https://github.com/drukepple> did
not answer. Or if you are patient I will do it myself. This fix will be in
the version *1.2* anyway
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABY3-4MlqlNb4MLiCZHJD61OZpaJnhiJks5q1h5HgaJpZM4JTtT6>
.
|
Hey, @Tuizi! Oh my Gosh! It has been quite a (very) long time since you proposed that solution and I totally forgot to give you a PR, really sorry. 🙇♂️ I checked the release page and I don't think the version Is this project still active? |
No description provided.