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
Родитель 88d48dc0c5
Коммит c50a33220f
1 изменённых файлов: 1 добавлений и 0 удалений

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

@ -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;
}
}