зеркало из https://github.com/mozilla/pjs.git
Making menu titles really crop.
This commit is contained in:
Родитель
de23c3ae77
Коммит
5a8b590403
|
@ -1000,6 +1000,7 @@ nsMenuFrame::CreateAnonymousContent(nsISupportsArray& aAnonymousChildren)
|
|||
if (crop == "")
|
||||
crop = "right";
|
||||
content->SetAttribute(kNameSpaceID_None, nsXULAtoms::crop, crop, PR_FALSE);
|
||||
content->SetAttribute(kNameSpaceID_None, nsXULAtoms::flex, "1", PR_FALSE);
|
||||
|
||||
// append now, after we've set all the attributes
|
||||
aAnonymousChildren.AppendElement(content);
|
||||
|
@ -1014,7 +1015,7 @@ nsMenuFrame::CreateAnonymousContent(nsISupportsArray& aAnonymousChildren)
|
|||
content = do_QueryInterface(node);
|
||||
content->SetAttribute(kNameSpaceID_None, classAtom, "menu-spring",
|
||||
PR_FALSE);
|
||||
content->SetAttribute(kNameSpaceID_None, nsXULAtoms::flex, "100",
|
||||
content->SetAttribute(kNameSpaceID_None, nsXULAtoms::flex, "100000",
|
||||
PR_FALSE);
|
||||
aAnonymousChildren.AppendElement(content);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче