diff --git a/js/view/right-control-panel/RightControlPanel.js b/js/view/right-control-panel/RightControlPanel.js index 1b79ae10..5967418d 100644 --- a/js/view/right-control-panel/RightControlPanel.js +++ b/js/view/right-control-panel/RightControlPanel.js @@ -47,9 +47,11 @@ define( function( require ) { // add sections for ( var i = 0, len = sections.length; i < len; i++ ) { - sectionLinks[i] = new sections[i]( model, {x: 5} ); + sectionLinks[i] = new sections[i]( model, {x: 5, y: 0} ); nodes[i] = new Node( { children: [sectionLinks[i]]} ); this.box.addChild( nodes[i] ); + assert && assert( !isNaN( nodes[i].width ) ); + assert && assert( !isNaN( nodes[i].height ) ); } // find width for lines diff --git a/js/view/right-control-panel/mass-menu/MassMenu.js b/js/view/right-control-panel/mass-menu/MassMenu.js index c8042708..267c4d98 100644 --- a/js/view/right-control-panel/mass-menu/MassMenu.js +++ b/js/view/right-control-panel/mass-menu/MassMenu.js @@ -103,6 +103,8 @@ define( function( require ) { self.vBox.updateLayout(); } ); + + assert && assert( !isNaN( this.height ) ); } return inherit( Node, MassMenu );