Skip to content
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

Adding hideFractionOnRoundValue flag to hide the trailing decimal when value is a round number #26

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

penntheone
Copy link

A very simple change that adds a much needed feature. Recreated PR to change head repo.

Right now, when animating from 35.27 to 35, hardcoding fraction digits to 2 displays 35.00 with the ugly trailing 0s. Set this to true hides the decimal separator and all fraction digits, using the existing visible tag, rendering only 35. Fraction digits still exist in the widget tree and will re-animate up accordingly when say animating back from 35 to 35.27.

CleanShot 2024-08-12 at 19 08 01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant