Fixed the test for the knob position with B_DOCUMENT_WINDOW_LOOK.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6670 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-02-20 21:35:52 +00:00
parent 75c3c8f50d
commit dc204ab22f

View File

@ -178,11 +178,14 @@ DynamicScrollView::~DynamicScrollView()
void
DynamicScrollView::AttachedToWindow(void)
{
BRect frame = ConvertToScreen(Bounds());
BRect windowFrame = Window()->Frame();
fIsDocumentScroller = Parent() == NULL
&& Window() != NULL
&& Window()->Look() == B_DOCUMENT_WINDOW_LOOK
&& Frame().right == Window()->Bounds().right
&& Frame().bottom == Window()->Bounds().bottom;
&& frame.right == windowFrame.right
&& frame.bottom == windowFrame.bottom;
UpdateBars();
}