BWindow::MoveOnScreen(): Need to use inner frame for resize.
* This caused the window to grow each time. * This was especially noticeable at applications that store their size on quit, and restore it on start. * This fixes bug #12456.
This commit is contained in:
@@ -2596,7 +2596,10 @@ BWindow::MoveOnScreen(uint32 flags)
|
|||||||
if (frame.Height() > screenFrame.Height())
|
if (frame.Height() > screenFrame.Height())
|
||||||
frame.bottom -= frame.Height() - screenFrame.Height();
|
frame.bottom -= frame.Height() - screenFrame.Height();
|
||||||
|
|
||||||
ResizeTo(frame.Width(), frame.Height());
|
BRect innerFrame = frame;
|
||||||
|
innerFrame.top += tabHeight;
|
||||||
|
innerFrame.InsetBy(borderWidth, borderWidth);
|
||||||
|
ResizeTo(innerFrame.Width(), innerFrame.Height());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (((flags & B_MOVE_IF_PARTIALLY_OFFSCREEN) == 0
|
if (((flags & B_MOVE_IF_PARTIALLY_OFFSCREEN) == 0
|
||||||
|
|||||||
Reference in New Issue
Block a user