Skip to content

Commit

Permalink
Converted BooleanToggleNode default alignment from HORIZONTAL to CENT…
Browse files Browse the repository at this point in the history
…ER, see #360
  • Loading branch information
samreid committed May 15, 2018
1 parent 8357742 commit 4e11844
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
7 changes: 0 additions & 7 deletions js/BooleanToggleNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ define( function( require ) {
* @constructor
*/
function BooleanToggleNode( trueNode, falseNode, booleanProperty, options ) {

options = _.extend( {

// For compatibility with prior usage, we align the x coordinate
alignChildren: ToggleNode.HORIZONTAL
}, options );

ToggleNode.call( this, [
{ value: true, node: trueNode },
{ value: false, node: falseNode }
Expand Down
3 changes: 1 addition & 2 deletions js/ToggleNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ define( function( require ) {

options = _.extend( {

// By default, line up the centers of all nodes with the center of the first node.
// NOTE this is different than in ToggleNode
// By default, line up the centers of all nodes with the center of the first node (horizontally and vertically)
alignChildren: ToggleNode.CENTER
}, options );

Expand Down

0 comments on commit 4e11844

Please sign in to comment.