Skip to content

Commit

Permalink
Panels increase a bit before shrinking panel contents. #293
Browse files Browse the repository at this point in the history
  • Loading branch information
Denz1994 committed Jul 16, 2018
1 parent be68864 commit b0ae1e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions js/common/view/SpringScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ define( function( require ) {
// @public {GravityAndDampingControlNode} Gravity Control Panel
this.gravityAndDampingControlNode = new GravityAndDampingControlNode(
model, this, tandem.createTandem( 'gravityAndDampingControlNode' ), {
maxWidth: MassesAndSpringsConstants.PANEL_MAX_WIDTH,
maxWidth: MassesAndSpringsConstants.PANEL_MAX_WIDTH + 50,
dampingVisible: options.dampingVisible,
hSlider: options.gravityHSlider
} );
Expand Down Expand Up @@ -232,8 +232,8 @@ define( function( require ) {
model.rulerVisibleProperty,
model.timerVisibleProperty,
tandem.createTandem( 'toolboxPanel' ), {
maxWidth: MassesAndSpringsConstants.PANEL_MAX_WIDTH + 30,
minWidth: MassesAndSpringsConstants.PANEL_MAX_WIDTH + 20
maxWidth: MassesAndSpringsConstants.PANEL_MAX_WIDTH + 35,
minWidth: MassesAndSpringsConstants.PANEL_MIN_WIDTH + 20
}
);

Expand Down Expand Up @@ -319,7 +319,7 @@ define( function( require ) {
return new IndicatorVisibilityControlNode(
model,
tandem.createTandem( 'indicatorVisibilityControlNode' ), {
maxWidth: MassesAndSpringsConstants.PANEL_MAX_WIDTH,
maxWidth: MassesAndSpringsConstants.PANEL_MAX_WIDTH + 50,
xMargin: 0,
yMargin: 0,
stroke: null,
Expand All @@ -342,7 +342,8 @@ define( function( require ) {
fill: MassesAndSpringsConstants.PANEL_FILL,
cornerRadius: MassesAndSpringsConstants.PANEL_CORNER_RADIUS,
tandem: tandem.createTandem( 'LineVisibilityNode' ),
minWidth: MassesAndSpringsConstants.PANEL_MIN_WIDTH + 5
minWidth: MassesAndSpringsConstants.PANEL_MIN_WIDTH + 5,
maxWidth: MassesAndSpringsConstants.PANEL_MAX_WIDTH + 50
} );
optionsPanel.moveToBack();
return optionsPanel;
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+50,
xMargin: 0,
yMargin: 0,
stroke: null,
Expand Down

0 comments on commit b0ae1e1

Please sign in to comment.