From 4e11844f8472aad3d0dc8c7e9e89e8cbb709f8c0 Mon Sep 17 00:00:00 2001 From: samreid Date: Tue, 15 May 2018 11:35:13 -0600 Subject: [PATCH] Converted BooleanToggleNode default alignment from HORIZONTAL to CENTER, see https://github.com/phetsims/sun/issues/360 --- js/BooleanToggleNode.js | 7 ------- js/ToggleNode.js | 3 +-- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/js/BooleanToggleNode.js b/js/BooleanToggleNode.js index 32ffd5c4..b512e93b 100644 --- a/js/BooleanToggleNode.js +++ b/js/BooleanToggleNode.js @@ -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 } diff --git a/js/ToggleNode.js b/js/ToggleNode.js index 3ed4df87..668b13dc 100644 --- a/js/ToggleNode.js +++ b/js/ToggleNode.js @@ -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 );