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

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

Issue 1215613005: Improve the padding and sizing of popup menus. (Closed) Base URL: https://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/widgets/basic.dart
diff --git a/sky/sdk/lib/widgets/basic.dart b/sky/sdk/lib/widgets/basic.dart
index d64ec05274056d7573b4be3e1b0237a6099a7362..cfbbdf8a764af7f100d3cf6e3e11dded49d8a3a8 100644
--- a/sky/sdk/lib/widgets/basic.dart
+++ b/sky/sdk/lib/widgets/basic.dart
@@ -231,11 +231,27 @@ class ConstrainedBox extends OneChildRenderObjectWrapper {
}
class ShrinkWrapWidth extends OneChildRenderObjectWrapper {
- ShrinkWrapWidth({ String key, Widget child })
- : super(key: key, child: child);
+
+ ShrinkWrapWidth({
+ String key,
+ this.stepWidth,
+ this.stepHeight,
+ Widget child
+ }): super(key: key, child: child);
RenderShrinkWrapWidth get root => super.root;
+
+ final double stepWidth;
+ final double stepHeight;
+
RenderShrinkWrapWidth createNode() => new RenderShrinkWrapWidth();
+
+ void syncRenderObject(ShrinkWrapWidth old) {
+ super.syncRenderObject(old);
+ root.stepWidth = stepWidth;
+ root.stepHeight = stepHeight;
+ }
+
}
class SizeObserver extends OneChildRenderObjectWrapper {

Powered by Google App Engine
This is Rietveld 408576698