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

Unified Diff: sky/sdk/lib/framework/components2/scaffold.dart

Issue 1162463002: DOM-less stocks app shouldn't crash on touch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/components2/scaffold.dart
diff --git a/sky/sdk/lib/framework/components2/scaffold.dart b/sky/sdk/lib/framework/components2/scaffold.dart
index bbc7ba78d40d76aec8553fd2f4b8aa0ef875ded2..078e5eb5b1996617582ded5502ee08e182ec7e2f 100644
--- a/sky/sdk/lib/framework/components2/scaffold.dart
+++ b/sky/sdk/lib/framework/components2/scaffold.dart
@@ -148,7 +148,7 @@ class RenderScaffold extends RenderDecoratedBox {
void hitTestChildren(HitTestResult result, { double x, double y }) {
assert(floatingActionButton == null || floatingActionButton.parentData is BoxParentData);
- assert(statusBar == null || statusBar.parentData is BoxParentData);
+ assert(statusbar == null || statusbar.parentData is BoxParentData);
if ((drawer != null) && (x < drawer.width)) {
drawer.hitTest(result, x: x, y: y);
} else if ((floatingActionButton != null) && (x >= floatingActionButton.parentData.x) && (x < floatingActionButton.parentData.x + floatingActionButton.width)
@@ -158,7 +158,7 @@ class RenderScaffold extends RenderDecoratedBox {
toolbar.hitTest(result, x: x, y: y);
} else if ((statusbar != null) && (y > statusbar.parentData.y)) {
statusbar.hitTest(result, x: x, y: y-statusbar.parentData.y);
- } else {
+ } else if (body != null) {
body.hitTest(result, x: x, y: y-body.parentData.y);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698