diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-02-13 16:54:13 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-14 21:31:19 +0000 |
commit | f0ee8ed43528b17e9ea6d83388fbaab0a645b677 (patch) | |
tree | 7f4e60f164b29ea2e44f7baa168790260f78aaf4 /vcl/source/window/syswin.cxx | |
parent | a541aab2e7fdedcc84fff213069d7e521ff827a4 (diff) |
see if we can merge floating window and dialog child size/pos setting
Change-Id: Idda1a5fbfec7d10fab4fcef47ee0d10945510d50
Diffstat (limited to 'vcl/source/window/syswin.cxx')
-rw-r--r-- | vcl/source/window/syswin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx index 5eca7c9b8815..6b799065e4b6 100644 --- a/vcl/source/window/syswin.cxx +++ b/vcl/source/window/syswin.cxx @@ -1032,8 +1032,8 @@ void SystemWindow::setPosSizeOnContainee(Size aSize, Window &rBox) { sal_Int32 nBorderWidth = get_border_width(); - aSize.Width() -= 2 * nBorderWidth; - aSize.Height() -= 2 * nBorderWidth; + aSize.Width() -= mpWindowImpl->mnLeftBorder + mpWindowImpl->mnRightBorder + 2 * nBorderWidth; + aSize.Height() -= nBorderWidth + mpWindowImpl->mnTopBorder + mpWindowImpl->mnBottomBorder + 2 * nBorderWidth; Point aPos(nBorderWidth, nBorderWidth); VclContainer::setLayoutAllocation(rBox, aPos, aSize); |