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

Unified Diff: sky/sdk/lib/framework/fn2.dart

Issue 1161063005: Make FixedHeightScrollable understand heights (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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
Index: sky/sdk/lib/framework/fn2.dart
diff --git a/sky/sdk/lib/framework/fn2.dart b/sky/sdk/lib/framework/fn2.dart
index 03206def57d7e72da18643c90c4344a0f380d933..7f8e303a63dbb8423a167a19da25ed52d307b415 100644
--- a/sky/sdk/lib/framework/fn2.dart
+++ b/sky/sdk/lib/framework/fn2.dart
@@ -421,6 +421,22 @@ class Transform extends OneChildRenderObjectWrapper {
}
}
+class SizeObserver extends OneChildRenderObjectWrapper {
+ RenderSizeObserver root;
+ final SizeChangedCallback callback;
+
+ SizeObserver({ this.callback, UINode child, Object key })
+ : super(child: child, key: key);
+
+ RenderSizeObserver createNode() => new RenderSizeObserver(callback: callback);
+
+ void syncRenderObject(SizeObserver old) {
+ super.syncRenderObject(old);
+ root.callback = callback;
+ }
+}
Hixie 2015/06/04 20:35:50 Should probably drop the callback when the child i
abarth-chromium 2015/06/04 20:41:25 Done.
+
+
final List<UINode> _emptyList = new List<UINode>();
abstract class MultiChildRenderObjectWrapper extends RenderObjectWrapper {
« no previous file with comments | « sky/sdk/lib/framework/components2/fixed_height_scrollable.dart ('k') | sky/sdk/lib/framework/rendering/box.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698