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
+5 -2
View File
@@ -178,11 +178,14 @@ DynamicScrollView::~DynamicScrollView()
void void
DynamicScrollView::AttachedToWindow(void) DynamicScrollView::AttachedToWindow(void)
{ {
BRect frame = ConvertToScreen(Bounds());
BRect windowFrame = Window()->Frame();
fIsDocumentScroller = Parent() == NULL fIsDocumentScroller = Parent() == NULL
&& Window() != NULL && Window() != NULL
&& Window()->Look() == B_DOCUMENT_WINDOW_LOOK && Window()->Look() == B_DOCUMENT_WINDOW_LOOK
&& Frame().right == Window()->Bounds().right && frame.right == windowFrame.right
&& Frame().bottom == Window()->Bounds().bottom; && frame.bottom == windowFrame.bottom;
UpdateBars(); UpdateBars();
} }