From 4a04a5d2518cb18d3058b7a5cd72dda3efabdd26 Mon Sep 17 00:00:00 2001 From: denz1994 Date: Wed, 9 May 2018 16:06:24 -0400 Subject: [PATCH] Using spacing option instead of VStruts #253 #258. --- js/vectors/view/IndicatorVisibilityControlNode.js | 2 +- js/vectors/view/VectorVisibilityControlNode.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/js/vectors/view/IndicatorVisibilityControlNode.js b/js/vectors/view/IndicatorVisibilityControlNode.js index 388a00cd..c3d46697 100644 --- a/js/vectors/view/IndicatorVisibilityControlNode.js +++ b/js/vectors/view/IndicatorVisibilityControlNode.js @@ -168,7 +168,7 @@ define( function( require ) { new VStrut( 24 ), redLine, new VStrut( 24 ) - ], yMargin: 0 + ], yMargin: 0, } ); } var controlBox = new HBox( { diff --git a/js/vectors/view/VectorVisibilityControlNode.js b/js/vectors/view/VectorVisibilityControlNode.js index 57eaaef6..47b41bc7 100644 --- a/js/vectors/view/VectorVisibilityControlNode.js +++ b/js/vectors/view/VectorVisibilityControlNode.js @@ -151,13 +151,11 @@ define( function( require ) { vectorVisibilityControlsVBox = new VBox( { children: [ vectorVisibilityCheckboxGroup, - new VStrut( 8 ), forcesVisibilityRadioButton, - new VStrut( 8 ), new AlignBox( forcesVisibilityCheckboxGroup, { leftMargin: 22 } ), - new VStrut( 8 ), netForceVisibilityRadioButton ], + spacing: 8, align: 'left', tandem: tandem.createTandem( 'spacingUnit' ) }