don't resize scrollbars if the window hasn't even document look
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15727 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -170,7 +170,8 @@ BScrollView::AttachedToWindow()
|
|||||||
BView::AttachedToWindow();
|
BView::AttachedToWindow();
|
||||||
|
|
||||||
if ((fHorizontalScrollBar == NULL && fVerticalScrollBar == NULL)
|
if ((fHorizontalScrollBar == NULL && fVerticalScrollBar == NULL)
|
||||||
|| (fHorizontalScrollBar != NULL && fVerticalScrollBar != NULL))
|
|| (fHorizontalScrollBar != NULL && fVerticalScrollBar != NULL)
|
||||||
|
|| Window()->Look() != B_DOCUMENT_WINDOW_LOOK)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// If we have only one bar, we need to check if we are in the
|
// If we have only one bar, we need to check if we are in the
|
||||||
|
|||||||
Reference in New Issue
Block a user