X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1bf3ad3e8f34361824a801008d47833ac71dcb1..b14abf14c7b6a29e907035ff24a86d45be762752:/src/gtk/scrolwin.cpp diff --git a/src/gtk/scrolwin.cpp b/src/gtk/scrolwin.cpp index fd31b4e024..ba87c7596c 100644 --- a/src/gtk/scrolwin.cpp +++ b/src/gtk/scrolwin.cpp @@ -325,10 +325,8 @@ void wxScrolledWindow::DoSetVirtualSize( int x, int y ) wxPanel::DoSetVirtualSize( x, y ); AdjustScrollbars(); -#if wxUSE_CONSTRAINTS if (GetAutoLayout()) Layout(); -#endif } /* @@ -383,7 +381,7 @@ void wxScrolledWindow::AdjustScrollbars() else { m_hAdjust->upper = vw / m_xScrollPixelsPerLine; - m_hAdjust->page_increment = (w / m_xScrollPixelsPerLine); + m_hAdjust->page_increment = w / m_xScrollPixelsPerLine; m_hAdjust->page_size = m_hAdjust->page_increment; // If the scrollbar hits the right side, move the window @@ -411,7 +409,7 @@ void wxScrolledWindow::AdjustScrollbars() else { m_vAdjust->upper = vh / m_yScrollPixelsPerLine; - m_vAdjust->page_increment = (h / m_yScrollPixelsPerLine); + m_vAdjust->page_increment = h / m_yScrollPixelsPerLine; m_vAdjust->page_size = m_vAdjust->page_increment; if ((m_vAdjust->value != 0.0) && (m_vAdjust->value + m_vAdjust->page_size > m_vAdjust->upper))