Changed the ordering so we mark the scrolled view as having transparent

content before setting the scrolling view's scrolled view
This commit is contained in:
troy%netscape.com 1998-10-25 04:15:08 +00:00
Родитель ca6b1690f1
Коммит 0cadccb4e3
1 изменённых файлов: 5 добавлений и 4 удалений

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

@ -190,14 +190,15 @@ nsScrollFrame::CreateScrollingView()
// Initialize the view // Initialize the view
scrolledView->Init(viewManager, nsRect(0, 0, 0, 0), parentView); scrolledView->Init(viewManager, nsRect(0, 0, 0, 0), parentView);
// Set it as the scrolling view's scrolled view // If the background is transparent then inform the view manager. Note:
scrollingView->SetScrolledView(scrolledView); // we need to do this before we set the scrolling view's scrolled view
// If the background is transparent then inform the view manager
if (isTransparent) { if (isTransparent) {
viewManager->SetViewContentTransparency(scrolledView, PR_TRUE); viewManager->SetViewContentTransparency(scrolledView, PR_TRUE);
} }
// Set it as the scrolling view's scrolled view
scrollingView->SetScrolledView(scrolledView);
// We need to allow the view's position to be different than the // We need to allow the view's position to be different than the
// frame's position // frame's position
nsFrameState state; nsFrameState state;