git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34081 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jonas Sundström 2009-11-16 23:35:34 +00:00
parent 031918562b
commit 5a0982b580

View File

@ -2035,16 +2035,16 @@ BWindow::Frame() const
BRect
BWindow::DecoratorFrame() const
{
BRect decortatorFrame(Frame());
BRect decoratorFrame(Frame());
float borderWidth;
float tabHeight;
_GetDecoratorSize(&borderWidth, &tabHeight);
// TODO: Broken for tab on left window side windows...
decortatorFrame.top -= tabHeight;
decortatorFrame.left -= borderWidth;
decortatorFrame.right += borderWidth;
decortatorFrame.bottom += borderWidth;
return decortatorFrame;
decoratorFrame.top -= tabHeight;
decoratorFrame.left -= borderWidth;
decoratorFrame.right += borderWidth;
decoratorFrame.bottom += borderWidth;
return decoratorFrame;
}