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:
Stephan Aßmus
2005-12-29 18:25:43 +00:00
parent 74e7fd417e
commit 27a00cdd92
+2 -1
View File
@@ -170,7 +170,8 @@ BScrollView::AttachedToWindow()
BView::AttachedToWindow();
if ((fHorizontalScrollBar == NULL && fVerticalScrollBar == NULL)
|| (fHorizontalScrollBar != NULL && fVerticalScrollBar != NULL))
|| (fHorizontalScrollBar != NULL && fVerticalScrollBar != NULL)
|| Window()->Look() != B_DOCUMENT_WINDOW_LOOK)
return;
// If we have only one bar, we need to check if we are in the