소스 검색

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];
 
+        if (!control->isVisible())
+            continue;
+
         const Rectangle& bounds = control->getBounds();
         const Theme::Margin& margin = control->getMargin();