Builder3/Window.js
[app.Builder.js] / Builder3 / Window.js
index 7ee0fd5..0864d44 100644 (file)
@@ -2803,7 +2803,7 @@ Window=new XObject({
                         {
                             xtype: Gtk.HPaned,
                             pack : "add",
-                            id : 'CenterEast',
+                            id : 'centereast',
                             position : 500,
 
                             items : [
@@ -3909,16 +3909,18 @@ Window=new XObject({
                                         
                                           this.get('buttonbar').el.show();
                                            this.get('viewbox').el.hide();
-                                           var ce = this.get('/CenterEast').el;
-                                           ce.setPostion(ce.max_position - 30);
+                                           var ce = this.get('/Window.centerEast').el;
+                                           
+                                           ce.set_postion(ce.get_allocated_width() - 30);
                                              
                                            print("TRIED TO HIDE");
                                     },
                                     show : function() {
                                         this.get('buttonbar').el.hide();
                                         this.get('viewbox').el.show();
-                                        var ce = this.get('/CenterEast').el;
-                                        ce.setPostion(ce.max_position - 100);
+                                        var ce = this.get('/Window.centereast').el;
+                                        print(JSON.stringify(XObject.keys(ce) ,null,4));
+                                        ce.set_postion(ce.get_allocated_width() - 100);
                                            
                                        // this.get('model').expanded();