src/Builder4/WindowState.vala
authorAlan Knowles <alan@roojs.com>
Sun, 1 Mar 2015 06:12:18 +0000 (14:12 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 1 Mar 2015 06:12:18 +0000 (14:12 +0800)
src/Builder4/WindowState.vala

index 07fd33e..79aaf6f 100644 (file)
@@ -751,15 +751,16 @@ public class WindowState : Object
             
                 this.win.projecteditview.el.set_size(alloc.width-50, alloc.height / 2.0f);
                
-               this.win.rooview.el.save_easing_state();
-               this.win.rooview.el.set_size(alloc.width / 2.0f, alloc.height / 2.0f);
-               this.win.rooview.el.restore_easing_state();
+                this.win.rooview.el.save_easing_state();
+                this.win.rooview.el.set_size(alloc.width / 2.0f, alloc.height / 2.0f);
+                this.win.rooview.el.restore_easing_state();
                 break;
 
             case State.CODE: 
                 this.win.codeeditview.el.set_size(codesize, alloc.height);
                 var scale = avail > 0.0f ? (avail - codesize -10 ) / avail : 0.0f;
-                   this.win.rooview.el.set_scale(scale,scale);
+                    
+                this.win.rooview.el.set_scale(scale,scale);
                 break;
                 
             case State.PROP:
@@ -767,7 +768,7 @@ public class WindowState : Object
             case State.OBJECT:  
                 this.win.objectview.el.set_size(palsize, alloc.height);    
                 this.win.addpropsview.el.set_size(palsize, alloc.height);
-               var scale = avail > 0.0f ? (avail - palsize -10 ) / avail : 0.0f;
+                var scale = avail > 0.0f ? (avail - palsize -10 ) / avail : 0.0f;
                 this.win.rooview.el.set_scale(scale,scale);
                 break;
         }