Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/html/item.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/item.js')
-rw-r--r--html/item.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/html/item.js b/html/item.js
index 9bb1107..5a7c625 100644
--- a/html/item.js
+++ b/html/item.js
@@ -2,7 +2,7 @@
enyo.kind({
name: "Abcd.Item",
kind: enyo.Control,
- published: { x: 0, y: 0, z: 0 },
+ published: { x: -1, y: -1, z: -1 },
// Constructor
create: function() {
@@ -19,17 +19,17 @@ enyo.kind({
// Coordinate setup
xChanged: function() {
- this.applyStyle("margin-left", this.x+"px");
+ if (this.x != -1) this.applyStyle("margin-left", this.x+"px");
},
// Coordinate setup
yChanged: function() {
- this.applyStyle("margin-top", this.y+"px");
+ if (this.y != -1) this.applyStyle("margin-top", this.y+"px");
},
// Coordinate setup
- zChanged: function() {
- this.applyStyle("z-index", this.z);
+ zChanged: function() {
+ if (this.z != -1) this.applyStyle("z-index", this.z);
},
// Change position