diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-09-03 15:11:32 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-09-03 15:58:25 +0100 |
commit | 2f60a1bdabac11e985dbcc6265dd8b97ef1ca6fd (patch) | |
tree | 8c5567fed49a37cd968b9743abcec048848006d6 /vcl | |
parent | 6c17e9a5ed0734c1418594ff2bcd46c060b4e40b (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')
-rw-r--r-- | vcl/source/window/syswin.cxx | 10 |
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); } |