ecere/gui/Stacker: Fixed issue when not using scroller buttons
authorJerome St-Louis <jerome@ecere.com>
Thu, 15 Oct 2015 00:12:44 +0000 (20:12 -0400)
committerJerome St-Louis <jerome@ecere.com>
Mon, 21 Dec 2015 19:11:58 +0000 (14:11 -0500)
- Broken by 897a128846dc0ed77cee5dce05a54cf16a48590c

ecere/src/gui/controls/Stacker.ec

index 9af6450..0eb1e75 100644 (file)
@@ -402,7 +402,8 @@ private:
             }
          }
 
-         if(needScrollers) //y > ((direction == horizontal) ? size.w : size.h))
+         if(needScrollers ||
+            ((bits.scrollable && !bits.endButtons) && (y > ((direction == horizontal) ? size.w : size.h))))
          {
             scrollArea = (direction == horizontal) ? { y, 0 } : { 0, y };
             if(bits.endButtons && !left.visible)