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

DecimalNumber changes height unexpectedly #3842

Open
JasonGrace2282 opened this issue Jul 6, 2024 · 0 comments
Open

DecimalNumber changes height unexpectedly #3842

JasonGrace2282 opened this issue Jul 6, 2024 · 0 comments
Labels
issue:bug Something isn't working... For use in issues

Comments

@JasonGrace2282
Copy link
Member

Credit for all this goes to Abulafia

MRE

class Test(Scene):
    def construct(self):
        weird = DecimalNumber(0.1234, num_decimal_places=4)
        weird.add_updater(lambda m, dt: 
            m.rotate(0.2*dt)
        )
        self.add(weird)
        self.play(ChangeDecimalToValue(weird, 0.5678), run_time=5)

Explanation of Cause

It is explained in this forum post:
https://discord.com/channels/581738731934056449/1252654031634173983/1252963107840725025

@JasonGrace2282 JasonGrace2282 added the issue:bug Something isn't working... For use in issues label Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue:bug Something isn't working... For use in issues
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant