-
Notifications
You must be signed in to change notification settings - Fork 7
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
Setting generationSpinner.visibleProperty
to false creates a layout problem.
#347
Comments
The layout is handled in ProportionsGraphNode.ts. I reverted that file all the way back to 11/10/22, just prior to TypeScript conversion, and the problem is still present. The problem is not present in the 1.4 release. So either this problem was introduced a long time ago, or it's a recent problem in scenery layout. |
The layout is very simple, nothing clever going on, so I'm can't immediately identify the problem. Here's the relevant code in
|
This problem is present in all of the 1.5 dev versions (1.5.0-dev.1 through 1.5.0-dev.4) that have been published. 1.5.0-dev.1 was published over a year ago, on 7/6/2022. That was before support for dynamic locale was added (8/27/22) and before TypeScript conversion (11/10/22) |
Fixed in the above commit by listening to - content.localBoundsProperty.link( () => {
+ content.boundsProperty.link( () => {
content.center = backgroundNode.center;
} ); Listening to @arouinfar please review. There were 3 other case (in PopulationGraphNode) were I also switched from localBoundsProperty to boundsProperty. I tested and didn't see any problems, but that should get a look too. |
Looks good on master, thanks @pixelzoom. |
Reported by @arouinfar in #339 (comment). It's not related to that issue, becuase
generationSpinner.visibleProperty
has always been writeable. So creating this issue.I noticed that toggling
generationSpinner.visibleProperty
can create layout issues.I don't remember seeing this before, but I might of missed it. Not sure if this is related to the changes made to
generationSpinner
here or if this is entirely unrelated issue.The text was updated successfully, but these errors were encountered: