summaryrefslogtreecommitdiff
path: root/vcl/source/window/layout.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/layout.cxx')
-rw-r--r--vcl/source/window/layout.cxx6
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