Index: sky/examples/style/toolbar-layout.sky |
diff --git a/sky/examples/style/toolbar-layout.sky b/sky/examples/style/toolbar-layout.sky |
index a43ce3fc5d773ed8e9ce859b62b7eb215e348674..b0f59644bbdaf5adca5a56229a03af82963f8d1c 100644 |
--- a/sky/examples/style/toolbar-layout.sky |
+++ b/sky/examples/style/toolbar-layout.sky |
@@ -10,9 +10,9 @@ SKY MODULE |
sky.registerLayoutManager('spring', module.exports.SpringLayoutManager); |
sky.registerProperty({ |
name: 'toolbar-spacing', |
- type: sky.LengthStyleValueType, |
+ type: sky.PositiveLengthStyleValueType, |
inherits: true, |
- initialValue: { value: 8, unit: 'px' }, |
+ initialValue: 8, |
needsLayout: true, |
}); |
module.exports.ToolbarLayoutManager = class ToolbarLayoutManager extends sky.LayoutManager { |
@@ -131,7 +131,7 @@ SKY MODULE |
} |
function getIntrinsicWidth() { |
let width = this.node.getProperty('width'); |
- if (typeof height != 'number') { |
+ if (typeof width != 'number') { |
let spacing = this.node.getProperty('toolbar-spacing'); |
if (typeof spacing != 'number') |
spacing = 0; |