Closed KatieWoe closed 1 year ago
Thanks @KatieWoe! @Luisav1 and I have been looking into this - right now when the sim starts up, there is an assertion firing in RectangularButton that the height does not meet minimum requirements (assert && assert( buttonHeight >= VERTICAL_HIGHLIGHT_GRADIENT_LENGTH + SHADE_GRADIENT_LENGTH );
).
We've traced it to the "down" set of arrows created in DoubleArrowButton:
if ( direction === 'down' ) {
doubleArrow.setRotation( Math.PI );
// switch the colors since the arrow was rotated 180 degrees
leftArrowPath.fill = rightArrowFill;
rightArrowPath.fill = leftArrowFill;
}
If we comment out doubleArrow.setRotation( Math.PI );
, the problem does not occur. So we think something about that rotation is causing weird bounds. Weirdly, adding widthSizable: false
to DoubleArrowButton does not seem to help the problem.
Any ideas @jonathanolson?
Adding heightSizable: false
to the DoubleArrowButton fixes the problem but it causes the 'down' DoubleArrowButton to look like this.
We don't see this on CT right now, but it may be just hidden by other errors. Marking on hold and removing assignment.
CT has been clear for the last 12 hours. Closing