Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(941)

Unified Diff: sky/sdk/lib/widgets/scaffold.dart

Issue 1220353002: Add padding values to View.idl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/sdk/lib/theme/view_configuration.dart ('k') | sky/services/engine/sky_engine.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/widgets/scaffold.dart
diff --git a/sky/sdk/lib/widgets/scaffold.dart b/sky/sdk/lib/widgets/scaffold.dart
index e85aaa83a1e7b644d5663555318f1df4fd84cf86..3f8ab015fb916b643bc27af4247df32619b03fcd 100644
--- a/sky/sdk/lib/widgets/scaffold.dart
+++ b/sky/sdk/lib/widgets/scaffold.dart
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+import 'dart:sky' as sky;
+
import '../rendering/box.dart';
import '../rendering/object.dart';
import '../theme/view_configuration.dart';
@@ -102,7 +104,7 @@ class RenderScaffold extends RenderBox {
}
if (_slots[ScaffoldSlots.toolbar] != null) {
RenderBox toolbar = _slots[ScaffoldSlots.toolbar];
- double toolbarHeight = kToolBarHeight + kNotificationAreaHeight;
+ double toolbarHeight = kToolBarHeight + sky.view.paddingTop;
toolbar.layout(new BoxConstraints.tight(new Size(size.width, toolbarHeight)));
assert(toolbar.parentData is BoxParentData);
toolbar.parentData.position = Point.origin;
« no previous file with comments | « sky/sdk/lib/theme/view_configuration.dart ('k') | sky/services/engine/sky_engine.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698