Closed Nancy-Salpepi closed 1 year ago
This error doesn't occur when I do something similar in the Name Panel, but does happen with the Bonding Panel and Lone Pair Panel.
I was able to easily reproduce this problem. Looks like it is trying to set a negative preferred width for some reason. I could likely come up with a working workaround, but may be better to get help from @jonathanolson or @marlitas about how to deal with that in the layout engine.
Commit should handle this above, closing. Thanks!
Test device MacBook Air (m1 chip)
Operating System macOS 13.0
Browser safari/chrome
Problem description For https://github.com/phetsims/qa/issues/845 and https://github.com/phetsims/qa/issues/844 In Studio: After setting checkbox visibleProperty to false for all checkboxes in the Options panel, attempting to change the visibleProperty back to true, results in assertion errors.
Steps to reproduce In Basics:
moleculeShapesBasics.modelScreen.view.optionsPanel.showBondAnglesCheckbox.visibleProperty
to false --The title 'Options' is still present on the screenmoleculeShapesBasics.modelScreen.view.optionsPanel.showBondAnglesCheckbox.visibleProperty
to true --assertion errors appearThis also happens on the Real Molecules screen.
In full version of the sim: Set both 'moleculeShapes.modelScreen.view.optionsPanel.showBondAnglesCheckbox.visibleProperty' and `moleculeShapes.modelScreen.view.optionsPanel.showLonePairsCheckbox.visibleProperty' to false. Then try and set one to true.
Visuals