[the-board] [ui] Only limit size when not loading from state



commit c38774050aa89c99236fe7760a106ad4fe29f74c
Author: Lucas Rocha <lucasr gnome org>
Date:   Mon Dec 6 17:24:00 2010 +0000

    [ui] Only limit size when not loading from state
    
    https://bugzilla.gnome.org/show_bug.cgi?id=636592

 src/js/ui/thing.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/js/ui/thing.js b/src/js/ui/thing.js
index b80d64b..c4f4b4f 100644
--- a/src/js/ui/thing.js
+++ b/src/js/ui/thing.js
@@ -211,9 +211,6 @@ Thing.prototype = {
     },
 
     _updateSize : function(newWidth, newHeight, fromState) {
-        newWidth = Math.max(this.minWidth, newWidth);
-        newHeight = Math.max(this.minHeight, newHeight);
-
         let validWidth;
         let validHeight;
 
@@ -221,6 +218,9 @@ Thing.prototype = {
             validWidth = newWidth;
             validHeight = newHeight;
         } else {
+            newWidth = Math.max(this.minWidth, newWidth);
+            newHeight = Math.max(this.minHeight, newHeight);
+
             [validWidth, validHeight] =
                 this.validateSize(newWidth, newHeight);
         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]