Skip to content

Commit

Permalink
tweak positions of return and reset buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
veillette committed Jul 4, 2016
1 parent 3e7135b commit 5a6d242
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions js/common/PendulumLabConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ define( function( require ) {
SIM_BOUNDS: new Bounds2( 0, 0, 768, 504 ), // Determines bounds for sim Bounds2( minX, minY, maxX, maxY )
BACKGROUND_COLOR: 'rgb( 255, 255, 255 )',
SCREEN_PADDING: {
TOP: 15,
RIGHT: 15,
BOTTOM: 15,
LEFT: 15
TOP: 14,
RIGHT: 14,
BOTTOM: 14,
LEFT: 14
},
// create a model view transform (assuming the dev view screen is 768 wide and the 504 high)
// the height of the screen is 4/3 m = 1.33 m
Expand Down
10 changes: 5 additions & 5 deletions js/common/view/PendulumLabView.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ define( function( require ) {
backgroundDragNode.addInputListener( dragListener );

// create period trace node
var periodTraceNode = new PeriodTraceNode( pendulumLabModel.pendulums, modelViewTransform);
var periodTraceNode = new PeriodTraceNode( pendulumLabModel.pendulums, modelViewTransform );

// add panel with sliders for pendulums
var bodiesListNode = new Node();
Expand Down Expand Up @@ -87,8 +87,8 @@ define( function( require ) {
this.systemSlidersNode
]
} );
slidersPanelNode.right = width - SCREEN_PADDING.RIGHT - 5;
slidersPanelNode.top = SCREEN_PADDING.TOP - 2;
slidersPanelNode.right = width - SCREEN_PADDING.RIGHT;
slidersPanelNode.top = SCREEN_PADDING.TOP;
this.slidersPanelNode = slidersPanelNode;

// create tools control panel (which controls the visibility of the ruler and stopwatch)
Expand All @@ -112,7 +112,7 @@ define( function( require ) {
touchAreaDilation: 6
} );
resetAllButton.right = width - SCREEN_PADDING.RIGHT;
resetAllButton.centerY = height - SCREEN_PADDING.BOTTOM - 10;
resetAllButton.bottom = height - 2;
resetAllButton.scale( 0.75 );

// create ruler node
Expand All @@ -131,7 +131,7 @@ define( function( require ) {
var returnButtonNode = new ReturnButtonNode( {
listener: pendulumLabModel.returnHandler.bind( pendulumLabModel ),
centerX: resetAllButton.left - 75,
centerY: height - SCREEN_PADDING.BOTTOM - 8,
bottom: height - SCREEN_PADDING.BOTTOM,
maxWidth: 120
} );

Expand Down

0 comments on commit 5a6d242

Please sign in to comment.