Fix BWindow::DecoratorFrame for top-titled windows.
Also take into account the border width for the edge with the title. Fixes #8614.
This commit is contained in:
parent
1565964a11
commit
a0e655bff1
@ -2139,13 +2139,13 @@ BWindow::DecoratorFrame() const
|
||||
// else use fall-back values from above
|
||||
}
|
||||
|
||||
if (fLook & kLeftTitledWindowLook) {
|
||||
if (fLook == kLeftTitledWindowLook) {
|
||||
decoratorFrame.top -= borderWidth;
|
||||
decoratorFrame.left -= tabRect.Width();
|
||||
decoratorFrame.left -= borderWidth + tabRect.Width();
|
||||
decoratorFrame.right += borderWidth;
|
||||
decoratorFrame.bottom += borderWidth;
|
||||
} else {
|
||||
decoratorFrame.top -= tabRect.Height();
|
||||
decoratorFrame.top -= borderWidth + tabRect.Height();
|
||||
decoratorFrame.left -= borderWidth;
|
||||
decoratorFrame.right += borderWidth;
|
||||
decoratorFrame.bottom += borderWidth;
|
||||
|
Loading…
x
Reference in New Issue
Block a user