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

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

Issue 1166153002: Add a basic popup menu implementation to stocks2 (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
« no previous file with comments | « sky/sdk/lib/framework/components2/checkbox.dart ('k') | sky/sdk/lib/framework/components2/popup_menu.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/components2/modal_overlay.dart
diff --git a/sky/sdk/lib/framework/components2/modal_overlay.dart b/sky/sdk/lib/framework/components2/modal_overlay.dart
index 79c47722b835509fabba5118228ce00f35cdfed0..7af446c818ed3e72389518174bbbac3e133e81ba 100644
--- a/sky/sdk/lib/framework/components2/modal_overlay.dart
+++ b/sky/sdk/lib/framework/components2/modal_overlay.dart
@@ -5,12 +5,12 @@
import '../fn2.dart';
class ModalOverlay extends Component {
- static final Style _style = new Style('''
- position: absolute;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;''');
+ // static final Style _style = new Style('''
+ // position: absolute;
+ // top: 0;
+ // left: 0;
+ // bottom: 0;
+ // right: 0;''');
List<UINode> children;
GestureEventListener onDismiss;
@@ -19,9 +19,7 @@ class ModalOverlay extends Component {
UINode build() {
return new EventListenerNode(
- new Container(
- style: _style,
- children: children),
+ new StackContainer(children: children),
onGestureTap: onDismiss);
}
}
« no previous file with comments | « sky/sdk/lib/framework/components2/checkbox.dart ('k') | sky/sdk/lib/framework/components2/popup_menu.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698