Skip to content

Commit

Permalink
ComboBoxListBox to have read-only sub-Properties because it listens t…
Browse files Browse the repository at this point in the history
…o Node, #587
  • Loading branch information
zepumph committed Apr 16, 2020
1 parent df0f3ff commit 0402d99
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/ComboBoxListBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ class ComboBoxListBox extends Panel {
}, options );

// Use this pattern so that passed in phetioComponentOptions are not blown away.
// list box visibility is controlled by the combo box, and should not be controlled through the PhET-iO API.
PhetioObject.mergePhetioComponentOptions( { visibleProperty: { phetioReadOnly: true } }, options );
// List box visibility, opacity, and pickability is controlled by the combo box, and should not be controlled
// through the PhET-iO API.
PhetioObject.mergePhetioComponentOptions( { phetioReadOnly: true }, options );

assert && assert( options.xMargin > 0 && options.yMargin > 0,
'margins must be > 0, xMargin=' + options.xMargin + ', yMargin=' + options.yMargin );
Expand Down

0 comments on commit 0402d99

Please sign in to comment.