ecere/gui/Stacker: Scrolling update tweak on toggling visibility/resizing child controls
authorJerome St-Louis <jerome@ecere.com>
Sat, 7 Jul 2012 16:21:57 +0000 (12:21 -0400)
committerJerome St-Louis <jerome@ecere.com>
Sat, 7 Jul 2012 16:32:00 +0000 (12:32 -0400)
ecere/src/gui/controls/Stacker.ec

index 5111dbc..77da1e8 100644 (file)
@@ -248,10 +248,12 @@ private:
    void OnChildVisibilityToggled(Window child, bool visible)
    {
       DoResize(size.w, size.h); // todo: improve with DoPartialResize(size.w, size.h, client);
+      size = size;   // TRIGGER SCROLLING UPDATE (Currently required since we aren't using Window scrollbars)
    }
    void OnChildResized(Window child, int x, int y, int w, int h)
    {
       DoResize(size.w, size.h); // todo: improve with DoPartialResize(size.w, size.h, client);
+      size = size;   // TRIGGER SCROLLING UPDATE (Currently required since we aren't using Window scrollbars)
    }
 
    void UpdateControls()