Skip to content

Commit

Permalink
deprecate LayoutBox, phetsims/scenery#1418
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed May 31, 2022
1 parent ab76321 commit d649ad2
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions js/systems/view/SystemsScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ import ModelViewTransform2 from '../../../../phetcommon/js/view/ModelViewTransfo
import ResetAllButton from '../../../../scenery-phet/js/buttons/ResetAllButton.js';
import PhetFont from '../../../../scenery-phet/js/PhetFont.js';
import TimeControlNode from '../../../../scenery-phet/js/TimeControlNode.js';
import { LayoutBox } from '../../../../scenery/js/imports.js';
import { Node } from '../../../../scenery/js/imports.js';
import { Rectangle } from '../../../../scenery/js/imports.js';
import { Text } from '../../../../scenery/js/imports.js';
import { HBox, Node, Rectangle, Text } from '../../../../scenery/js/imports.js';
import Checkbox from '../../../../sun/js/Checkbox.js';
import Panel from '../../../../sun/js/Panel.js';
import Tandem from '../../../../tandem/js/Tandem.js';
Expand All @@ -41,8 +38,8 @@ import BikerNode from './BikerNode.js';
import EnergyChunkLegend from './EnergyChunkLegend.js';
import EnergySystemElementSelector from './EnergySystemElementSelector.js';
import FanNode from './FanNode.js';
import GeneratorNode from './GeneratorNode.js';
import FaucetAndWaterNode from './FaucetAndWaterNode.js';
import GeneratorNode from './GeneratorNode.js';
import LightBulbNode from './LightBulbNode.js';
import SolarPanelNode from './SolarPanelNode.js';
import SunNode from './SunNode.js';
Expand Down Expand Up @@ -234,7 +231,7 @@ class SystemsScreenView extends ScreenView {
// The EnergyChunk that is created in here is not going to be used in the simulation, it is only needed in the
// EnergyChunkNode that is displayed in the show/hide energy chunks toggle.
const showEnergyChunksCheckbox = new Checkbox(
new LayoutBox( {
new HBox( {
children: [
new Text( energySymbolsString, {
font: new PhetFont( 20 ),
Expand All @@ -245,7 +242,6 @@ class SystemsScreenView extends ScreenView {
modelViewTransform
)
],
orientation: 'horizontal',
spacing: 5
} ),
model.energyChunksVisibleProperty, {
Expand Down

1 comment on commit d649ad2

@pixelzoom
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.