Builder4/Editor.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 19 May 2014 11:05:57 +0000 (19:05 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 19 May 2014 11:05:57 +0000 (19:05 +0800)
Builder4/Editor.js

Builder4/Editor.bjs
Builder4/Editor.js

index 5f11a10..8ab8c39 100644 (file)
@@ -8,7 +8,7 @@
         {
             "listeners": {
                 "delete_event": "function (self, event) {\n    if (!this.get('/Editor.RightEditor').save()) {\n        // no hiding with errors.\n        return true;\n    }\n    this.el.hide();\n    this.get('/Editor').activePath = false;\n    return true;\n}\n/*--\n\n(event) => {\n    if (!Editor.RightEditor.save()) {\n        // no hiding with errors.\n        return true;\n    }\n    _this.hide();\n    _this.activePath = false;\n    return true;\n}\n\n*/",
-                "configure_event": "function (self, object) {\n    _this.pos = this.get_position();\n\n\n    return false;\n}",
+                "configure_event": "function (self, object) {\n    this.pos = this.el.get_position();\n\n\n    return false;\n}\n/*--\n (self, object) {\n    _this.pos = this.get_position();\n\n\n    return false;\n}\n*/\n",
                 "show": "function (self) {\n    if (this.pos) {\n        this.el.set_uposition(this.pos.root_x,this.pos.root_y);\n    }\n}"
             },
             "height_request": 300,
index e5fffdc..1d5abfa 100644 (file)
@@ -35,11 +35,19 @@ Editor=new XObject({
         
         */,
         configure_event : function (self, object) {
+            this.pos = this.el.get_position();
+        
+        
+            return false;
+        }
+        /*--
+         (self, object) {
             _this.pos = this.get_position();
         
         
             return false;
-        },
+        }
+        */,
         show : function (self) {
             if (this.pos) {
                 this.el.set_uposition(this.pos.root_x,this.pos.root_y);