Skip to content

Commit

Permalink
White space removed on edges of panel. #293
Browse files Browse the repository at this point in the history
  • Loading branch information
Denz1994 committed Jul 18, 2018
1 parent 480034a commit c072fba
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion js/common/view/GravityAndDampingControlNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ define( function( require ) {
}
],
layoutFunction: NumberControl.createLayoutFunction1( {
titleXSpacing: 75,
titleXSpacing: 55,
ySpacing: 2,
arrowButtonsXSpacing: 1
} ),
Expand Down
2 changes: 1 addition & 1 deletion js/common/view/LineVisibilityNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ define( function( require ) {
function LineVisibilityNode( model, tandem, options ) {
options = _.extend( {
massEquilibrium: false,
maxWidth:MassesAndSpringsConstants.PANEL_MAX_WIDTH,
maxWidth:MassesAndSpringsConstants.PANEL_MAX_WIDTH+20,
fill: MassesAndSpringsConstants.PANEL_FILL,
tandem: tandem.createTandem( 'LineVisibilityNode' )
}, options );
Expand Down
2 changes: 1 addition & 1 deletion js/common/view/SpringScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ define( function( require ) {
return new IndicatorVisibilityControlNode(
model,
tandem.createTandem( 'indicatorVisibilityControlNode' ), {
maxWidth: MassesAndSpringsConstants.PANEL_MAX_WIDTH,
maxWidth: MassesAndSpringsConstants.PANEL_MAX_WIDTH+30,
periodTraceOption: displayPeriodTrace
} );
},
Expand Down
2 changes: 1 addition & 1 deletion js/lab/view/LabScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ define( function( require ) {
model,
tandem.createTandem( 'vectorVisibilityControlNode' ),
{
maxWidth: MassesAndSpringsConstants.PANEL_MAX_WIDTH,
maxWidth: MassesAndSpringsConstants.PANEL_MAX_WIDTH + 30,
showForces: false
} );

Expand Down
5 changes: 3 additions & 2 deletions js/vectors/view/IndicatorVisibilityControlNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ define( function( require ) {
options = _.extend( {
fill: MassesAndSpringsConstants.PANEL_FILL,
tandem: tandem.createTandem( 'indicatorVisibilityControlNode' ),
minWidth: MassesAndSpringsConstants.PANEL_MIN_WIDTH,
minWidth: MassesAndSpringsConstants.PANEL_MIN_WIDTH+10,
maxWidth:MassesAndSpringsConstants.PANEL_MAX_WIDTH+25,
periodTraceOption: false
}, options );

Expand Down Expand Up @@ -185,7 +186,7 @@ define( function( require ) {
} );
}
var controlBox = new HBox( {
spacing: 23,
spacing: 27,
children: [
indicatorVisibilityControlsVBox,
lineVBox
Expand Down
2 changes: 1 addition & 1 deletion js/vectors/view/VectorsScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ define( function( require ) {
massesAndSprings.register( 'VectorsScreenView', VectorsScreenView );

return inherit( TwoSpringScreenView, VectorsScreenView );
} );
} );

0 comments on commit c072fba

Please sign in to comment.