Closed jonathanolson closed 1 year ago
In NavigationBar, we're subtracting by this.a11yButtonsHBox.width
, which in this sim's case happens to have no bounds (thus its width is -Infinity), thus the maxWidth becomes +Infinity.
@marlitas could you review this change?
Looking through this I pulled up Waves on a String to test the functionality, and while using the helper dialog I hit an assertion when looking for the A11yButtonsHBox
. It seems buggy to me that A11yButtonsHBox
would have no bounds. If the HBox has no content its bounds should reflect that as 0.
Talked through my questions with @jonathanolson. Feels good to close!
To reproduce:
&stringTest=asrtalasrkntalskrntalskrntalksrntlaksrntlaksrntalskrntalksrntaaslrtknaslrktnalsrktnalsrktnalskrntalksrntalskrntalskrntalksrntalskrnt
The title will overshoot the PhET button:
Presumably we'll need a maxWidth for this