summaryrefslogtreecommitdiff
path: root/vcl/source/window/syswin.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-09-03 15:11:32 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-09-03 15:58:25 +0100
commit2f60a1bdabac11e985dbcc6265dd8b97ef1ca6fd (patch)
tree8c5567fed49a37cd968b9743abcec048848006d6 /vcl/source/window/syswin.cxx
parent6c17e9a5ed0734c1418594ff2bcd46c060b4e40b (diff)
forget about the Left/Top/Right/Bottom frame distance
I think these are actually already factored in, at least the undo popup doesn't want it and a quick look around gives 0 for other dialogs. Change-Id: Ib5abf91992b0e6075dbdce209798596f21342818
Diffstat (limited to 'vcl/source/window/syswin.cxx')
-rw-r--r--vcl/source/window/syswin.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx
index 127709324926..c2746348f68b 100644
--- a/vcl/source/window/syswin.cxx
+++ b/vcl/source/window/syswin.cxx
@@ -1031,14 +1031,10 @@ void SystemWindow::setPosSizeOnContainee(Size aSize, VclContainer &rBox)
{
sal_Int32 nBorderWidth = get_border_width();
- aSize.Width() -= mpWindowImpl->mnLeftBorder + mpWindowImpl->mnRightBorder
- + 2 * nBorderWidth;
- aSize.Height() -= mpWindowImpl->mnTopBorder + mpWindowImpl->mnBottomBorder
- + 2 * nBorderWidth;
-
- Point aPos(mpWindowImpl->mnLeftBorder + nBorderWidth,
- mpWindowImpl->mnTopBorder + nBorderWidth);
+ aSize.Width() -= 2 * nBorderWidth;
+ aSize.Height() -= 2 * nBorderWidth;
+ Point aPos(nBorderWidth, nBorderWidth);
VclContainer::setLayoutAllocation(rBox, aPos, aSize);
}