Skip to content

Commit

Permalink
factor out const MARGINS, #129
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Feb 20, 2025
1 parent f89811a commit 0a01065
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/common/view/TransitionsDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ const CONTENT_TEXT_OPTIONS: TextOptions = {
font: new PhetFont( 12 )
};

const MARGINS = 10;

type SelfOptions = {
position?: Vector2; // the dialog's initial position, in view coordinates
};
Expand Down Expand Up @@ -107,8 +109,8 @@ export default class TransitionsDialog extends Panel {
phetioValueType: BooleanIO
} ),
cursor: 'pointer',
xMargin: 10,
yMargin: 10,
xMargin: MARGINS,
yMargin: MARGINS,
cornerRadius: MOTHAConstants.CORNER_RADIUS,
tagName: 'div',
focusable: true,
Expand Down

1 comment on commit 0a01065

@pixelzoom
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.