Commit 2d6dd63e authored by Ian Hickson's avatar Ian Hickson

Merge pull request #1361 from Hixie/getPadding

_getPadding was ignoring its argument
parents 63962d2c fae41c22
...@@ -68,8 +68,7 @@ class MaterialApp extends StatefulComponent { ...@@ -68,8 +68,7 @@ class MaterialApp extends StatefulComponent {
_MaterialAppState createState() => new _MaterialAppState(); _MaterialAppState createState() => new _MaterialAppState();
} }
EdgeDims _getPadding(ui.Window window) { EdgeDims _getPadding(ui.WindowPadding padding) {
ui.WindowPadding padding = ui.window.padding;
return new EdgeDims.TRBL(padding.top, padding.right, padding.bottom, padding.left); return new EdgeDims.TRBL(padding.top, padding.right, padding.bottom, padding.left);
} }
...@@ -149,7 +148,7 @@ class _MaterialAppState extends State<MaterialApp> implements BindingObserver { ...@@ -149,7 +148,7 @@ class _MaterialAppState extends State<MaterialApp> implements BindingObserver {
data: new MediaQueryData( data: new MediaQueryData(
size: ui.window.size, size: ui.window.size,
devicePixelRatio: ui.window.devicePixelRatio, devicePixelRatio: ui.window.devicePixelRatio,
padding: _getPadding(ui.window) padding: _getPadding(ui.window.padding)
), ),
child: new LocaleQuery( child: new LocaleQuery(
data: _localeData, data: _localeData,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment