Skip to content

Commit

Permalink
assert( listParent.maxWidth === null ), #542
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Nov 20, 2019
1 parent 1897194 commit 4828b4d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/ComboBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ define( require => {
*/
constructor( items, property, listParent, options ) {

// See https://github.com/phetsims/sun/issues/542
assert && assert( listParent.maxWidth === null,
'ComboBox is responsible for scaling listBox. Setting maxWidth for listParent may result in buggy behavior.' );

options = merge( {

align: 'left', // see ALIGN_VALUES
Expand Down

0 comments on commit 4828b4d

Please sign in to comment.