From 7e9671ab15bcf6173a7a26d951ff1a2793584b1b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 25 Oct 2019 13:45:18 +0100 Subject: set second child to remaining size MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I2fad36cb4cb866418dcf4514e2f23b9658a957ed Reviewed-on: https://gerrit.libreoffice.org/81501 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- vcl/source/window/layout.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vcl/source') 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 -- cgit