Skip to content

Commit

Permalink
update maxWidth, fixes #187
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Aug 31, 2023
1 parent dec6c92 commit 1475ded
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/common/view/NucleonNumberPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const NUCLEON_PARTICLE_RADIUS = BANConstants.PARTICLE_RADIUS * 0.7;
class NucleonNumberPanel extends Panel {

public constructor( protonCountProperty: TReadOnlyProperty<number>, protonNumberRange: Range,
neutronCountProperty: TReadOnlyProperty<number>, neutronNumberRange: Range ) {
neutronCountProperty: TReadOnlyProperty<number>, neutronNumberRange: Range ) {

const panelContents = new Rectangle( 0, 0, 140, 40 ); // Empirically determined.

Expand Down
2 changes: 1 addition & 1 deletion js/decay/view/DecayScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class DecayScreenView extends BANScreenView<DecayModel> {
this.symbolAccordionBox = new AccordionBox( symbolNode, {
titleNode: new Text( BuildANucleusStrings.symbolStringProperty, {
font: BANConstants.REGULAR_FONT,
maxWidth: 118
maxWidth: 113 // This value largely controls the size of the whole panel, which others rely on. Change wisely, https://github.com/phetsims/build-a-nucleus/issues/187
} ),
fill: BANColors.panelBackgroundColorProperty,
minWidth: 50,
Expand Down

0 comments on commit 1475ded

Please sign in to comment.