-
Notifications
You must be signed in to change notification settings - Fork 67
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
Text not showing up when percent is 0 #55
Comments
Sounds good, I'll look into submitting a pull request when I get some time. |
Cool! |
Any update here @whoisme555 ? :-) |
Sorry, got overloaded at work and forgot. I'll put it in my calendar to remind myself when I expect to have more time in a few days!
Sent from Yahoo Mail on Android
On Mon, May 13, 2019 at 2:22 PM, Thodoris Bais<notifications@github.com> wrote:
Any update here @whoisme555 ? :-)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Latest version of chrome. Not sure how it's working for you, if the percent is 0, it's a falsey value and would never enter the branch of code that displays the text.
Maybe I'm using it wrong?
category.score is a double from 0-100
On Wednesday, May 15, 2019, 3:50:22 PM EDT, Thodoris Bais <notifications@github.com> wrote:
Are we sure this is an issue?
For me, it looks to be working fine:
Which browser are you testing on?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I see, there's maybe something else going wrong with the initialization of |
Closed with #56 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like the code checks if(percent) before adding the text, when percent is 0, it won't get added.
I think this should be configurable via option. if (percent || options.forcePercentText) or something.
In my particular case, I'm using this plugin to display letter grades and the % progress to 100% (A+). If they received a 0, I'd still want to display F, but it gets hidden due to the above conditional. My current hack is to add .0001 to the % so it's never 0, but that's not very eloquent.
The text was updated successfully, but these errors were encountered: