Skip to content

Commit

Permalink
Symbol and label spacing adjustment for displacement and natural leng…
Browse files Browse the repository at this point in the history
…th. #293
  • Loading branch information
Denz1994 committed Aug 8, 2018
1 parent 9abb73f commit a2e853a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions js/vectors/view/IndicatorVisibilityControlNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,16 @@ define( function( require ) {
} ), { xAlign: 'left', group: alignGroup } );

// Create checkboxes using align boxes above
var componentDisplacementVBox = new VBox( { children: [ displacementSymbol, blueLine ] } );
componentDisplacementVBox.spacing = componentDisplacementVBox.height * 0.75;
var indicatorVisibilityCheckboxGroup = new VerticalCheckboxGroup( [ {
content: new HBox( {
children: [ componentDisplacement, new VBox( { children: [ displacementSymbol, blueLine ], spacing: 15 } ) ],
children: [ componentDisplacement, componentDisplacementVBox ],
spacing: CONTENT_SPACING
} ),
property: model.naturalLengthVisibleProperty
}, {
content: new HBox( { children: [ massEquilibriumAlignBox, blackLine ], spacing: CONTENT_SPACING } ),
content: new HBox( { children: [ massEquilibriumAlignBox, blackLine ], spacing: CONTENT_SPACING } ),
property: model.equilibriumPositionVisibleProperty
}, {
content: new HBox( { children: [ movalbeLineAlignBox, redLine ], spacing: CONTENT_SPACING } ),
Expand All @@ -140,15 +142,15 @@ define( function( require ) {
if ( options.periodTraceOption ) {
indicatorVisibilityCheckboxGroup = new VerticalCheckboxGroup( [ {
content: new HBox( {
children: [ componentDisplacement, new VBox( { children: [ displacementSymbol, blueLine ], spacing: 15 } ) ],
children: [ componentDisplacement, new VBox( { children: [ displacementSymbol, blueLine ] } ) ],
spacing: CONTENT_SPACING
} ),
property: model.naturalLengthVisibleProperty
}, {
content: new HBox( { children: [ massEquilibriumAlignBox, blackLine ], spacing: CONTENT_SPACING } ),
content: new HBox( { children: [ massEquilibriumAlignBox, blackLine ], spacing: CONTENT_SPACING } ),
property: model.equilibriumPositionVisibleProperty
}, {
content: new HBox( { children: [ movalbeLineAlignBox, redLine ], spacing: CONTENT_SPACING } ),
content: new HBox( { children: [ movalbeLineAlignBox, redLine ], spacing: CONTENT_SPACING } ),
property: model.movableLineVisibleProperty
}, {
content: new Text( periodTraceString, {
Expand Down

0 comments on commit a2e853a

Please sign in to comment.