зеркало из https://github.com/mozilla/gecko-dev.git
Fix bug 171459 (incorrect positioning of toolbar customization dialog on linux) by working around bug 171482 and using moveTo instead of setting screenX and screenY.
This commit is contained in:
Родитель
d5d4febdd6
Коммит
9faa3a2a4e
|
@ -106,8 +106,9 @@ function slideClosed()
|
|||
function repositionDialog()
|
||||
{
|
||||
// Position the dialog touching the bottom of the toolbox and centered with it
|
||||
window.screenY = gToolbox.boxObject.screenY + gToolbox.boxObject.height;
|
||||
window.screenX = gToolbox.boxObject.screenX + ((gToolbox.boxObject.width - kWindowWidth) / 2);
|
||||
var screenX = gToolbox.boxObject.screenX + ((gToolbox.boxObject.width - kWindowWidth) / 2);
|
||||
var screenY = gToolbox.boxObject.screenY + gToolbox.boxObject.height;
|
||||
window.moveTo(screenX, screenY);
|
||||
}
|
||||
|
||||
function removeToolboxListeners()
|
||||
|
|
Загрузка…
Ссылка в новой задаче