зеркало из https://github.com/mozilla/gecko-dev.git
fix for 48834 - cannot collapse toolbars via their grippies
This commit is contained in:
Родитель
e1100b76d1
Коммит
afce8bf8a0
|
@ -125,9 +125,11 @@ Contributor(s):
|
||||||
return nodes[i];
|
return nodes[i];
|
||||||
else {
|
else {
|
||||||
var subnodes = nodes[i].getElementsByAttribute(aAttribute, aValue);
|
var subnodes = nodes[i].getElementsByAttribute(aAttribute, aValue);
|
||||||
return subnodes.length ? subnodes[0] : null;
|
if (!subnodes.length) continue;
|
||||||
|
return subnodes[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
]]>
|
]]>
|
||||||
</body>
|
</body>
|
||||||
</method>
|
</method>
|
||||||
|
@ -151,7 +153,7 @@ Contributor(s):
|
||||||
collapsedGrippy.collapsed = true;
|
collapsedGrippy.collapsed = true;
|
||||||
collapsedGrippy.setAttribute("tbgrippy-collapsed", "true");
|
collapsedGrippy.setAttribute("tbgrippy-collapsed", "true");
|
||||||
var collapsedTrayHolder = this.findNodeByAttribute("tbattr", "collapsed-tray-holder");
|
var collapsedTrayHolder = this.findNodeByAttribute("tbattr", "collapsed-tray-holder");
|
||||||
if (collapsedTrayHolder.getAttribute("collapsed") == "true");
|
if (collapsedTrayHolder.getAttribute("collapsed") == "true")
|
||||||
collapsedTrayHolder.removeAttribute("collapsed");
|
collapsedTrayHolder.removeAttribute("collapsed");
|
||||||
this.findNodeByAttribute("tbattr", "collapsed-tray").appendChild(collapsedGrippy);
|
this.findNodeByAttribute("tbattr", "collapsed-tray").appendChild(collapsedGrippy);
|
||||||
collapsedGrippy = document.getElementById("moz_tb_collapsed_" + aToolbar.id);
|
collapsedGrippy = document.getElementById("moz_tb_collapsed_" + aToolbar.id);
|
||||||
|
@ -225,7 +227,7 @@ Contributor(s):
|
||||||
<binding id="menubar" extends="xul:menubar">
|
<binding id="menubar" extends="xul:menubar">
|
||||||
<content>
|
<content>
|
||||||
<xul:toolbargrippy inherits="grippytooltiptext:tooltiptext,grippytooltip:tooltip,last-toolbar"
|
<xul:toolbargrippy inherits="grippytooltiptext:tooltiptext,grippytooltip:tooltip,last-toolbar"
|
||||||
onclick="this.grippyClicked();"
|
onclick="this.grippyClicked();" tbattr="toolbar-grippy"
|
||||||
class="toolbar-grippy"/>
|
class="toolbar-grippy"/>
|
||||||
<xul:box flex="1" class="toolbar-holder" inherits="collapsed,last-toolbar" autostretch="never">
|
<xul:box flex="1" class="toolbar-holder" inherits="collapsed,last-toolbar" autostretch="never">
|
||||||
<children/>
|
<children/>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче