Bug 43410: Correct z-index ordering of iframes. This PlaceBehind() call is needed on Windows to cause the actual ::SetWindowPos system call that reorders the widgets to be made. Mac and Gtk do not implement PlaceBehind and should not be affected by this change. Fix includes work by beard@netscape.com. r=beard@netscape.com,self sr=jst@netscape.com

This commit is contained in:
pollmann%netscape.com 2001-07-18 08:21:22 +00:00
parent 88d48dc0c5
commit c50a33220f

View File

@ -312,6 +312,7 @@ NS_IMETHODIMP nsBaseWidget::SetZIndex(PRInt32 aZIndex)
if (NS_SUCCEEDED(childWidget->GetZIndex(&childZIndex))) {
if (aZIndex < childZIndex) {
parent->mChildren->InsertElementAt(this, index);
PlaceBehind(childWidget, PR_FALSE);
break;
}
}