ecere/gui/Stacker: Unsetting 'modifyVirtualArea' property upon setting auto size...
authorJerome St-Louis <jerome@ecere.com>
Tue, 24 Jul 2012 20:17:51 +0000 (16:17 -0400)
committerJerome St-Louis <jerome@ecere.com>
Tue, 24 Jul 2012 20:17:51 +0000 (16:17 -0400)
ecere/src/gui/controls/Stacker.ec

index f02893d..caed125 100644 (file)
@@ -135,7 +135,20 @@ public:
 
    property Window flipper { set { flipper = value; } get { return flipper; } };
    property bool flipSpring { set { bits.flipSpring = value; } get { return bits.flipSpring; } };
-   property bool autoSize { set { bits.autoSize = value; } get { return bits.autoSize; } };
+   property bool autoSize
+   {
+      set
+      {
+         bits.autoSize = value;
+         if(value)
+         {
+            // Auto Size implementation conflicts with this base Window property, resulting in overhead and potential glitches:
+            // dontAutoScrollArea = false;
+            modifyVirtualArea = false;
+         }
+      }
+      get { return bits.autoSize; }
+   };
    property int margin { set { margin = value; } get { return margin; } };
    property bool endButtons
    {