Fixed some visibility bugs in order to make the tab widget work correctly.

This commit is contained in:
evaughan@netscape.com
1999-05-19 22:14:11 +00:00
parent 7824713d44
commit 20ee0f32da
16 changed files with 225 additions and 72 deletions

View File

@@ -363,6 +363,10 @@ nsHTMLContainerFrame::CreateViewForFrame(nsIPresContext& aPresContext,
!display->mVisible) {
viewManager->SetViewContentTransparency(view, PR_TRUE);
}
// Set the initial visiblity of the view -EDV
view->SetVisibility(NS_STYLE_VISIBILITY_HIDDEN == display->mVisible ? nsViewVisibility_kHide : nsViewVisibility_kShow);
// XXX If it's relatively positioned or absolutely positioned then we
// need to mark it as having transparent content, too. See bug #2502
const nsStylePosition* position = (const nsStylePosition*)