Bug 786477 - collapsing chatboxes on overflow is wonkey; r=felipe

This commit is contained in:
Shane Caraveo 2012-08-31 10:58:27 -07:00
parent 9321fa4a2a
commit 6684152bf5

View File

@ -176,7 +176,7 @@
<method name="resize">
<body><![CDATA[
let child = this.firstCollapsedChild;
if (child && this.emptyWidth > 200) {
if (child && this.emptyWidth > child.viewWidth) {
this.showChat(child);
}
if (!this.firstCollapsedChild) {
@ -211,6 +211,7 @@
<method name="collapseChat">
<parameter name="aChatbox"/>
<body><![CDATA[
aChatbox.viewWidth = aChatbox.getBoundingClientRect().width;
aChatbox.collapsed = true;
aChatbox.isActive = false;
let menu = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menuitem");