Closed arouinfar closed 1 year ago
I noticed that this can cause the text to go out of bounds before it starts shrinking.
@arouinfar or @KatieWoe is this still a problem? I tried expanding the Bonding title and saw that it resized the panel:
Longer strings seemed to shrink at the appropriate point.
Please close if all is well, or specify more about how I can test and observe this.
I still see this on master, and strings seem to also go out of bounds to the right.
I likely missed this since I was editing the _en translation file--so perhaps the startup string length behaves different than changing it at runtime. I'll re-self-assign.
Handled in the above commit, closing!
Related to #223
When making the panel titles long, they seem to escape the
maxWidth
of the panel. I had to widen the sim window to pull these strings within view. They originally escaped the window bounds.Affected strings:
strings.moleculeShapes.control.bondingStringProperty
strings.moleculeShapes.control.lonePairStringProperty
strings.moleculeShapes.control.optionsStringProperty
strings.moleculeShapes.control.moleculeStringProperty
It seems like the string
maxWidth
is based on the associated panelmaxWidth
, but that width is only realized if the panel contents expand.@jonathanolson it seems like the panel should expand when the title is long, not just when the contents are long.
I'll open a side issue for the ComboBox button which is oddly stretched -- see #224