Преглед на файлове

fixed counting hidden controls when calculating total scrollable width and height

Andrew Karpushin преди 10 години
родител
ревизия
28b5f525a5
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      gameplay/src/Container.cpp

+ 3 - 0
gameplay/src/Container.cpp

@@ -1087,6 +1087,9 @@ void Container::updateScroll()
     {
     {
         Control* control = _controls[i];
         Control* control = _controls[i];
 
 
+        if (!control->isVisible())
+            continue;
+
         const Rectangle& bounds = control->getBounds();
         const Rectangle& bounds = control->getBounds();
         const Theme::Margin& margin = control->getMargin();
         const Theme::Margin& margin = control->getMargin();