mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 787275 - Location bar tooltip shows shortened URL when full location bar address is not visible. r=Unfocused
--HG-- extra : rebase_source : 495475dd10208f2eca49bb327faac131d44a103c
This commit is contained in:
parent
911ceaf6d3
commit
3ed67646ef
@ -399,10 +399,6 @@
|
||||
</hbox>
|
||||
</panel>
|
||||
|
||||
<tooltip id="urlTooltip">
|
||||
<label crop="center" flex="1" class="tooltip-label"/>
|
||||
</tooltip>
|
||||
|
||||
<panel id="ctrlTab-panel" class="KUI-panel" hidden="true" norestorefocus="true" level="top">
|
||||
<hbox>
|
||||
<button class="ctrlTab-preview" flex="1"/>
|
||||
|
@ -58,8 +58,6 @@
|
||||
this._formattingEnabled = this._prefs.getBoolPref("formatting.enabled");
|
||||
this._mayTrimURLs = this._prefs.getBoolPref("trimURLs");
|
||||
|
||||
this._urlTooltip = document.getElementById("urlTooltip");
|
||||
|
||||
this.inputField.controllers.insertControllerAt(0, this._copyCutController);
|
||||
this.inputField.addEventListener("mousedown", this, false);
|
||||
this.inputField.addEventListener("mousemove", this, false);
|
||||
@ -410,26 +408,13 @@
|
||||
<body><![CDATA[
|
||||
if (this.focused || !this._contentIsCropped)
|
||||
return;
|
||||
if (this._tooltipTimer)
|
||||
clearTimeout(this._tooltipTimer);
|
||||
this._tooltipTimer = setTimeout(function (self) {
|
||||
self._tooltipTimer = 0;
|
||||
var label = self._urlTooltip.firstChild;
|
||||
label.value = self.value;
|
||||
var bO = self.boxObject;
|
||||
self._urlTooltip.maxWidth = bO.width;
|
||||
self._urlTooltip.showPopup(self, bO.screenX, bO.screenY + bO.height, "tooltip");
|
||||
}, 700, this);
|
||||
this.inputField.setAttribute("tooltiptext", this.value);
|
||||
]]></body>
|
||||
</method>
|
||||
|
||||
<method name="_hideURLTooltip">
|
||||
<body><![CDATA[
|
||||
if (this._tooltipTimer) {
|
||||
clearTimeout(this._tooltipTimer);
|
||||
this._tooltipTimer = 0;
|
||||
}
|
||||
this._urlTooltip.hidePopup();
|
||||
this.inputField.removeAttribute("tooltiptext");
|
||||
]]></body>
|
||||
</method>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user