Builder3/Window.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 25 Apr 2011 04:01:59 +0000 (12:01 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 25 Apr 2011 04:01:59 +0000 (12:01 +0800)
Builder3/Window.js

index bd4c9d9..c6e49a1 100644 (file)
@@ -2803,6 +2803,7 @@ Window=new XObject({
                         {
                             xtype: Gtk.HPaned,
                             pack : "add",
                         {
                             xtype: Gtk.HPaned,
                             pack : "add",
+                            id : 'CenterEast'
                             position : 500,
 
                             items : [
                             position : 500,
 
                             items : [
@@ -3908,11 +3909,17 @@ Window=new XObject({
                                         
                                           this.get('buttonbar').el.show();
                                            this.get('viewbox').el.hide();
                                         
                                           this.get('buttonbar').el.show();
                                            this.get('viewbox').el.hide();
-                                        print("TRIED TO HIDE");
+                                           var ce = this.get('/CenterEast').el;
+                                           ce.setPostion(ce.max_position - 30);
+                                             
+                                           print("TRIED TO HIDE");
                                     },
                                     show : function() {
                                         this.get('buttonbar').el.hide();
                                         this.get('viewbox').el.show();
                                     },
                                     show : function() {
                                         this.get('buttonbar').el.hide();
                                         this.get('viewbox').el.show();
+                                        var ce = this.get('/CenterEast').el;
+                                        ce.setPostion(ce.max_position - 100);
+                                           
                                        // this.get('model').expanded();
                                                 
                                     },
                                        // this.get('model').expanded();
                                                 
                                     },