fixed bug where CreateWidget() was called twice for the ClipView and zero

times for the CornerView.
This commit is contained in:
michaelp%netscape.com 1999-01-28 05:04:43 +00:00
Родитель 3bfa7f5cd6
Коммит c60567f267
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -857,8 +857,8 @@ NS_IMETHODIMP nsScrollingView :: CreateScrollControls(nsNativeWidget aNative)
rv = mCornerView->Init(mViewManager, trect, this, rv = mCornerView->Init(mViewManager, trect, this,
nsnull, nsViewVisibility_kHide); nsnull, nsViewVisibility_kHide);
mViewManager->InsertChild(this, mCornerView, 1); mViewManager->InsertChild(this, mCornerView, 1);
mClipView->CreateWidget(kWidgetCID, nsnull, mCornerView->CreateWidget(kWidgetCID, nsnull,
mWindow ? nsnull : aNative); mWindow ? nsnull : aNative);
} }
// Create a view for a vertical scrollbar // Create a view for a vertical scrollbar