From ab5c4d12118a0c6d34a8c57ec9b7385391dcd4a5 Mon Sep 17 00:00:00 2001 From: Chris Malley Date: Wed, 16 Jan 2019 12:21:08 -0700 Subject: [PATCH] fix demos that weren't centered in layoutBounds --- js/demo/GriddleDemoScreenView.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/demo/GriddleDemoScreenView.js b/js/demo/GriddleDemoScreenView.js index e0aac6f..a42f977 100644 --- a/js/demo/GriddleDemoScreenView.js +++ b/js/demo/GriddleDemoScreenView.js @@ -77,8 +77,7 @@ define( require => { fill: '#efecd9', xMargin: 10, yMargin: 10, - x: 100, - y: 100 + center: layoutBounds.center } ); const series = new XYDataSeries( { color: Color.BLUE } ); plot.addSeries( series, false ); @@ -149,7 +148,7 @@ define( require => { const hBox = new HBox( { align: 'top', spacing: 60, - center: new Vector2( 512, 309 ), + center: layoutBounds.center, children: [ new Node( { children: [ barChartNode ]