зеркало из https://github.com/mozilla/pjs.git
Fix for blocker 27811. a=granrose
This commit is contained in:
Родитель
2029e26895
Коммит
605c1a9290
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче