FormValidationHandler.jsm (palemoon-29.4.1-source.tar.xz) | : | FormValidationHandler.jsm (palemoon-29.4.2-source.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 127 | skipping to change at line 127 | |||
*/ | */ | |||
_showPopup: function (aWindow, aPanelData) { | _showPopup: function (aWindow, aPanelData) { | |||
let previouslyShown = !!this._panel; | let previouslyShown = !!this._panel; | |||
this._panel = aWindow.document.getElementById("invalid-form-popup"); | this._panel = aWindow.document.getElementById("invalid-form-popup"); | |||
this._panel.firstChild.textContent = aPanelData.message; | this._panel.firstChild.textContent = aPanelData.message; | |||
this._panel.hidden = false; | this._panel.hidden = false; | |||
let tabBrowser = aWindow.gBrowser; | let tabBrowser = aWindow.gBrowser; | |||
this._anchor = tabBrowser.popupAnchor; | this._anchor = tabBrowser.popupAnchor; | |||
this._anchor.left = aPanelData.contentRect.left; | this._anchor.left = aPanelData.contentRect.left; | |||
this._anchor.top = aPanelData.contentRect.top; | this._anchor.top = Math.max(0, aPanelData.contentRect.top); | |||
this._anchor.width = aPanelData.contentRect.width; | this._anchor.width = aPanelData.contentRect.width; | |||
this._anchor.height = aPanelData.contentRect.height; | this._anchor.height = aPanelData.contentRect.height; | |||
this._anchor.hidden = false; | this._anchor.hidden = false; | |||
// Display the panel if it isn't already visible. | // Display the panel if it isn't already visible. | |||
if (!previouslyShown) { | if (!previouslyShown) { | |||
// Cleanup after the popup is hidden | // Cleanup after the popup is hidden | |||
this._panel.addEventListener("popuphiding", this, true); | this._panel.addEventListener("popuphiding", this, true); | |||
// Hide if the user scrolls the page | // Hide if the user scrolls the page | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |