Bug 632634 - Allow the status panel to be as wide as the window. r=felipe

This commit is contained in:
Dão Gottwald 2012-04-12 10:00:56 +02:00
parent c41ffddcb7
commit a25bd4d8d7
2 changed files with 13 additions and 2 deletions

View File

@ -479,7 +479,7 @@ statuspanel {
position: fixed;
margin-top: -3em;
left: 0;
max-width: 50%;
max-width: -moz-calc(100% - 5px);
pointer-events: none;
}
@ -489,6 +489,10 @@ statuspanel:-moz-locale-dir(rtl):not([mirror]) {
right: 0;
}
statuspanel[sizelimit] {
max-width: 50%;
}
statuspanel[type=status] {
min-width: 23em;
}

View File

@ -4036,8 +4036,10 @@
<property name="label">
<setter><![CDATA[
if (!this.label)
if (!this.label) {
this.removeAttribute("mirror");
this.removeAttribute("sizelimit");
}
this.style.minWidth = this.getAttribute("type") == "status" &&
this.getAttribute("previoustype") == "status"
@ -4115,6 +4117,11 @@
this.removeAttribute("mirror");
else
this.setAttribute("mirror", "true");
if (!this.hasAttribute("sizelimit")) {
this.setAttribute("sizelimit", "true");
this._calcMouseTargetRect();
}
</body>
</method>
</implementation>