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:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user