Convert this sim's implementation of fixed-width panels to new-style scenery layout. To identify related code, start by searching for options fixedWidth, fixedHeight, contentWidth, and contentHeight.
Here's the general approach to fixed width panels that @jonathanolson recommended previously for gas-properties. For example in IdealScreenView.ts:
const PANEL_WIDTH = 225;
...
const vBox = new VBox( {
children: panels,
...
// All panels have the same fixed width.
stretch: true,
minContentWidth: PANEL_WIDTH,
maxWidth: PANEL_WIDTH
} );
Related to problems encountered in https://github.com/phetsims/natural-selection/issues/363 with old-style implementation of fixed-width panels...
Convert this sim's implementation of fixed-width panels to new-style scenery layout. To identify related code, start by searching for options
fixedWidth
,fixedHeight
,contentWidth
, andcontentHeight
.Here's the general approach to fixed width panels that @jonathanolson recommended previously for gas-properties. For example in IdealScreenView.ts: