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

Unified Diff: sky/examples/raw/touch_demo.dart

Issue 1145973009: Add a simple inksplash example (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: nits 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 | « sky/examples/raw/ink_well.dart ('k') | sky/sdk/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/raw/touch_demo.dart
diff --git a/sky/examples/raw/touch_demo.dart b/sky/examples/raw/touch_demo.dart
index b90f86c8290f3441f80ff16e7b47b8c39036202e..1eac7fa103c18626164d88a2ee7a81a9796c9953 100644
--- a/sky/examples/raw/touch_demo.dart
+++ b/sky/examples/raw/touch_demo.dart
@@ -61,6 +61,10 @@ class RenderTouchDemo extends RenderBox {
markNeedsPaint();
}
+ void performLayout() {
+ size = constraints.constrain(new Size.infinite());
+ }
+
void paint(RenderNodeDisplayList canvas) {
dots.forEach((_, Dot dot) {
dot.paint(canvas);
« no previous file with comments | « sky/examples/raw/ink_well.dart ('k') | sky/sdk/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698