Skip to content

Commit

Permalink
Put opening brace at the end of an existing line, see #88
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Mar 10, 2023
1 parent d3d7cf7 commit 382d246
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions js/common/view/MySolarSystemScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,19 +120,15 @@ export default class MySolarSystemScreenView extends SolarSystemCommonScreenView
} );

const topRightControlBox = new AlignBox(
//REVIEW: Braces are on separate lines unnecessarily, and it forces another indent level. Put ( { on same line as VBox.
new VBox(
{
spacing: 10,
stretch: true,
children: [
new Panel( new Node( { children: [ labModeComboBox ], visible: model.isLab } ), SolarSystemCommonConstants.CONTROL_PANEL_OPTIONS ),
this.timeBox,
new Panel( checkboxesControlPanel, SolarSystemCommonConstants.CONTROL_PANEL_OPTIONS )
]
}
),
{
new VBox( {
spacing: 10,
stretch: true,
children: [
new Panel( new Node( { children: [ labModeComboBox ], visible: model.isLab } ), SolarSystemCommonConstants.CONTROL_PANEL_OPTIONS ),
this.timeBox,
new Panel( checkboxesControlPanel, SolarSystemCommonConstants.CONTROL_PANEL_OPTIONS )
]
} ), {
alignBoundsProperty: this.availableBoundsProperty,
margin: SolarSystemCommonConstants.MARGIN,
xAlign: 'right',
Expand Down

0 comments on commit 382d246

Please sign in to comment.