Kaydet (Commit) 2f60a1bd authored tarafından Caolán McNamara's avatar Caolán McNamara

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
üst 6c17e9a5
...@@ -1031,14 +1031,10 @@ void SystemWindow::setPosSizeOnContainee(Size aSize, VclContainer &rBox) ...@@ -1031,14 +1031,10 @@ void SystemWindow::setPosSizeOnContainee(Size aSize, VclContainer &rBox)
{ {
sal_Int32 nBorderWidth = get_border_width(); sal_Int32 nBorderWidth = get_border_width();
aSize.Width() -= mpWindowImpl->mnLeftBorder + mpWindowImpl->mnRightBorder aSize.Width() -= 2 * nBorderWidth;
+ 2 * nBorderWidth; aSize.Height() -= 2 * nBorderWidth;
aSize.Height() -= mpWindowImpl->mnTopBorder + mpWindowImpl->mnBottomBorder
+ 2 * nBorderWidth;
Point aPos(mpWindowImpl->mnLeftBorder + nBorderWidth,
mpWindowImpl->mnTopBorder + nBorderWidth);
Point aPos(nBorderWidth, nBorderWidth);
VclContainer::setLayoutAllocation(rBox, aPos, aSize); VclContainer::setLayoutAllocation(rBox, aPos, aSize);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment