Index: test/fixtures/x_list.dart |
diff --git a/test/fixtures/x_list.dart b/test/fixtures/x_list.dart |
index fd3866ff4eec736c2022119868dd17f222fbe76f..68716fc8b53862891fc9ae4c0989212e99603c19 100644 |
--- a/test/fixtures/x_list.dart |
+++ b/test/fixtures/x_list.dart |
@@ -22,11 +22,22 @@ class XList extends PolymerElement { |
@property |
int listHeight = 300; |
+ |
+ @property |
+ bool pre = false; |
get list => $['list']; |
@reflectable |
- String computedItemHeight() => 'height: ${itemHeight}px'; |
+ String computedItemHeight(item) { |
+ var css = pre ? 'white-space:pre;' : ''; |
+ if (item['height'] != null && item['height'] != 0) { |
+ css += itemHeight == 0 ? '' : 'height: ${item['height']}px;'; |
+ } else if (itemHeight != 0) { |
+ css += 'height: ${itemHeight}px;'; |
+ } |
+ return css; |
+ } |
@reflectable |
String computedListHeight(listHeight) => 'height: ${listHeight}px'; |