Closed KatieWoe closed 6 years ago
@Denz1994 another way to describe this issue is that changing the value in the comboBox shifts the Gravity title on the Lab screen. Compare Planet X (left) to the Moon (right). When the numberControl is replaced with the string, the Gravity title is shifted down. This doesn't happen on other screens, where there's just an HSlider to control gravity.
I've also noticed that the gravity title seems to shift from right to left when different options are selected. This may be easier to see with stringTest=X
GravityAndDampingControlNode.js has been refactored to use NumberControl.createLayoutFunction4() and https://phet-dev.colorado.edu/html/masses-and-springs/1.0.0-rc.5/phet/masses-and-springs_en_phet.html can be used to test this fix @KatieWoe.
Notes on implementation: The refactor removed a significant portion of alignments from all node children. Also, the visibility is handled internally within NumberControl. There is no longer a need for separate titles and their respective sliders. @arouinfar Could you also make sure the layout is as desired?
If everything looks good. Please assign to me so I can cherry pick the commits into master.
I think it looks much better. @arouinfar final decision
Looks good, thanks @Denz1994!
Refactors have been cherry-picked into master. Closing.
Test device: Dell laptop Operating System: Windows 8 and 10 Browser: Firefox and Chrome Problem description: For phetsims/QA/issues/180 When stringTest=long the string that represents the Planet X question shifts up noticeably on the first three screens. On the lab screen the title instead shifts down. In either case the two strings are noticeably closer than they should be. I'm also a bit unsure of the centering of the strings. Steps to reproduce:
Screenshots: Vectors Screen Lab Screen
Troubleshooting information (do not edit):