Skip to content

Commit

Permalink
Increased font size of slider titles by to reducing x spacings needed…
Browse files Browse the repository at this point in the history
… in panel. #292.
  • Loading branch information
Denz1994 committed Jul 11, 2018
1 parent 9edc956 commit be68864
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
10 changes: 5 additions & 5 deletions js/common/view/GravityAndDampingControlNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ define( function( require ) {
xMargin: 0,
majorTickLength: 10,
titleFont: new PhetFont( { size: 14, weight: 'bold' } ),
titleMaxWidth: MAX_WIDTH * 3,
titleMaxWidth: MAX_WIDTH ,
trackSize: new Dimension2( 125, 0.1 ),
thumbSize: new Dimension2( 13, 24 ),
thumbFillEnabled: '#00C4DF',
Expand All @@ -117,7 +117,7 @@ define( function( require ) {
}
],
layoutFunction: NumberControl.createLayoutFunction1( {
titleXSpacing: 75,
titleXSpacing: 58,
ySpacing: 2,
arrowButtonsXSpacing: 1
} ),
Expand All @@ -127,7 +127,7 @@ define( function( require ) {
valueFont: new PhetFont( { size: 14} ),
useRichText: true,
decimalPlaces: 1,
valueMaxWidth: MAX_WIDTH * 2,
valueMaxWidth: MAX_WIDTH ,
delta: 0.1,
arrowButtonScale: 0.5
};
Expand Down Expand Up @@ -193,7 +193,7 @@ define( function( require ) {
// Creating title for damping hSlider
var dampingHSliderTitle = new Text( dampingString, {
font: new PhetFont( { size: 14, weight: 'bold' } ),
maxWidth: MAX_WIDTH * 3,
maxWidth: MAX_WIDTH,
top: gravityComboBox.bottom + SPACING,
left: TITLE_INDENT
} );
Expand Down Expand Up @@ -253,7 +253,7 @@ define( function( require ) {

// Alignment of Node contents for panel with damping
if ( gravitySlider instanceof NumberControl ) {
gravitySliderTitle.leftTop = new Vector2( this.left, this.top + 22.5 );
gravitySliderTitle.leftTop = new Vector2( this.left-10, this.top + 22.5 );
gravitySlider.centerX = this.centerX;
gravitySlider.left = this.left;
gravitySlider.top = this.top + 7;
Expand Down
3 changes: 0 additions & 3 deletions js/common/view/SpringScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,6 @@ define( function( require ) {
model, this, tandem.createTandem( 'gravityAndDampingControlNode' ), {
maxWidth: MassesAndSpringsConstants.PANEL_MAX_WIDTH,
dampingVisible: options.dampingVisible,
xMargin: 0,
yMargin: 0,
stroke: null,
hSlider: options.gravityHSlider
} );

Expand Down

0 comments on commit be68864

Please sign in to comment.