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:
parent
75c3c8f50d
commit
dc204ab22f
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user