Skip to content

Commit

Permalink
options.spacing must be >= 0, #650
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Dec 16, 2020
1 parent 71fd693 commit 126c62a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/ZoomButtonGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class ZoomButtonGroup extends LayoutBox {

assert && assert( !options.buttonOptions.content, 'ZoomButtonGroup sets buttonOptions.content' );
assert && assert( !options.buttonOptions.listener, 'ZoomButtonGroup sets buttonOptions.listener' );
assert && assert( options.spacing >= 0, `invalid spacing: ${options.spacing}` );

// zoom in
const zoomInButton = new RectangularPushButton( merge( {}, options.buttonOptions, {
Expand Down

0 comments on commit 126c62a

Please sign in to comment.