Skip to content

Commit

Permalink
Prevent overlap for the combo box and distance label, see #204
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Mar 1, 2024
1 parent 49a6f2c commit fc7f3f4
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions js/common/view/BinControlNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class BinControlNode extends HBox {
createNode: () => new PDLText( new PatternStringProperty( ProjectileDataLabStrings.binWidthMPatternStringProperty, {
binWidth: binWidth
} ), {
maxWidth: 120
maxWidth: 70
} ),
tandemName: `binWidth${binWidthName}Item`
};
Expand All @@ -63,7 +63,7 @@ export default class BinControlNode extends HBox {
return {
value: totalBins,
createNode: () => new PDLText( Utils.toFixed( totalBins, 0 ), {
maxWidth: 120
maxWidth: 70
} ),
tandemName: `totalBins${totalBins}Item`
};
Expand All @@ -84,14 +84,10 @@ export default class BinControlNode extends HBox {
// strategies
new ToggleNode( PDLPreferences.binStrategyProperty, [ {
value: 'binWidth',
createNode: () => new PDLText( ProjectileDataLabStrings.binWidthStringProperty, {
maxWidth: 120
} )
createNode: () => new PDLText( ProjectileDataLabStrings.binWidthStringProperty, { maxWidth: 90 } )
}, {
value: 'totalBins',
createNode: () => new PDLText( ProjectileDataLabStrings.totalBinsStringProperty, {
maxWidth: 120
} )
createNode: () => new PDLText( ProjectileDataLabStrings.totalBinsStringProperty, { maxWidth: 90 } )
} ], {
alignChildren: ToggleNode.RIGHT,
layoutOptions: {
Expand Down

0 comments on commit fc7f3f4

Please sign in to comment.