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