mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 786477 - collapsing chatboxes on overflow is wonkey; r=felipe
This commit is contained in:
parent
9b0c3f3e24
commit
ebcaaebdbd
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user