diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-19 16:14:23 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-08-20 01:15:15 -0500 |
commit | dac4825abef1c9a4d970dab7dbec26673126342a (patch) | |
tree | 4138410680a2cd20167972170b8114a343ff4633 /vcl | |
parent | 4a1c82de77f28a107198b8d8da3cf840d541360a (diff) |
facepalm: nAvailHeight is not derived from allocation Width
Change-Id: Ic99c6519b02c546e0d3574cb756e3fb172d1ff52
(cherry picked from commit 36490fff3f4d1b4a7e4b7902a866abb177a0bf54)
Reviewed-on: https://gerrit.libreoffice.org/11023
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/layout.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index 5ae34120ad43..9e204a86e792 100644 --- a/vcl/source/window/layout.cxx +++ b/vcl/source/window/layout.cxx @@ -1694,7 +1694,7 @@ void VclScrolledWindow::setAllocation(const Size &rAllocation) if (pChild && pChild->IsVisible()) aChildReq = getLayoutRequisition(*pChild); - long nAvailHeight = rAllocation.Width(); + long nAvailHeight = rAllocation.Height(); long nAvailWidth = rAllocation.Width(); // vert. ScrollBar if (GetStyle() & WB_AUTOVSCROLL) |