From dc204ab22ff8aadd66470418278c1ea066cc8518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 20 Feb 2004 21:35:52 +0000 Subject: [PATCH] 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 --- src/kits/media/DefaultMediaTheme.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/kits/media/DefaultMediaTheme.cpp b/src/kits/media/DefaultMediaTheme.cpp index 45c927b0c1..2ee10be206 100644 --- a/src/kits/media/DefaultMediaTheme.cpp +++ b/src/kits/media/DefaultMediaTheme.cpp @@ -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(); }