Fix for blocker 27811. a=granrose

This commit is contained in:
jst%citec.fi 2000-02-15 17:14:59 +00:00
Родитель 2029e26895
Коммит 605c1a9290
1 изменённых файлов: 5 добавлений и 6 удалений

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

@ -455,11 +455,10 @@ nsMenuPopupFrame::SyncViewWithFrame(nsIPresContext* aPresContext,
viewManager->MoveViewTo(view, xpos, ypos);
viewManager->ResizeView(view, mRect.width, mRect.height);
// just before we show it, make sure it's been reflowed. if not, we get weird
// redraw problems because of async layout
nsCOMPtr<nsIPresShell> myShell;
mPresContext->GetShell(getter_AddRefs(myShell));
myShell->ProcessReflowCommands ( PR_FALSE );
nsAutoString shouldDisplay;
mContent->GetAttribute(kNameSpaceID_None, nsXULAtoms::menutobedisplayed, shouldDisplay);
if ( shouldDisplay.Equals("true") )
mContent->SetAttribute(kNameSpaceID_None, nsXULAtoms::menuactive, "true", PR_TRUE);
return NS_OK;
}