diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-19 17:20:00 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-19 17:20:34 +0100 |
commit | 749f7548b4ee746d69c20a828ea6d3b853eba8d3 (patch) | |
tree | fcfc8dc84af39c59f29fcb2ece33485711e92818 /vcl | |
parent | 788632dcb0450cc9863a5a332b6df50b92f30c4d (diff) |
only subtract height of hscroll if visible
otherwise infinite loop in extensions update check
Change-Id: I0dbf4f34208f1bf0854e365006a79470b26571f3
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/layout.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index ffce00dc2004..88823f17db6a 100644 --- a/vcl/source/window/layout.cxx +++ b/vcl/source/window/layout.cxx @@ -1706,8 +1706,11 @@ void VclScrolledWindow::setAllocation(const Size &rAllocation) // horz. ScrollBar if (GetStyle() & WB_AUTOHSCROLL) { - m_aHScroll.Show(nAvailWidth < aChildReq.Width()); - nAvailHeight -= getLayoutRequisition(m_aHScroll).Height(); + bool bShowHScroll = nAvailWidth < aChildReq.Width(); + m_aHScroll.Show(bShowHScroll); + + if (bShowHScroll) + nAvailHeight -= getLayoutRequisition(m_aHScroll).Height(); if (GetStyle() & WB_AUTOVSCROLL) m_aVScroll.Show(nAvailHeight < aChildReq.Height()); |