diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-10-25 13:45:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-10-25 16:21:12 +0200 |
commit | 7e9671ab15bcf6173a7a26d951ff1a2793584b1b (patch) | |
tree | 8a65976e567981c06313fb6f807cbc6d57bb08d1 /vcl/source | |
parent | da2fb9b40181a91590aadeca5a51a9bb1ee9b180 (diff) |
set second child to remaining size
Change-Id: I2fad36cb4cb866418dcf4514e2f23b9658a957ed
Reviewed-on: https://gerrit.libreoffice.org/81501
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/window/layout.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index 0f8ba88e61b7..ce0d15afddab 100644 --- a/vcl/source/window/layout.cxx +++ b/vcl/source/window/layout.cxx @@ -2452,7 +2452,7 @@ void VclVPaned::setAllocation(const Size& rAllocation) nFirstHeight += nHeightDiff/2; else if (bFirstCanResize) nFirstHeight += nHeightDiff; - arrange(rAllocation, nFirstHeight, nSecondHeight); + arrange(rAllocation, nFirstHeight, rAllocation.Height() - nFirstHeight - aSplitterSize.Height()); } Size VclVPaned::calculateRequisition() const @@ -2473,7 +2473,7 @@ Size VclVPaned::calculateRequisition() const } VclHPaned::VclHPaned(vcl::Window *pParent) - : VclPaned(pParent, true) + : VclPaned(pParent, false) { m_pSplitter->SetSplitHdl(LINK(this, VclHPaned, SplitHdl)); } @@ -2559,7 +2559,7 @@ void VclHPaned::setAllocation(const Size& rAllocation) nFirstWidth += nWidthDiff/2; else if (bFirstCanResize) nFirstWidth += nWidthDiff; - arrange(rAllocation, nFirstWidth, nSecondWidth); + arrange(rAllocation, nFirstWidth, rAllocation.Width() - nFirstWidth - aSplitterSize.Width()); } Size VclHPaned::calculateRequisition() const |