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:
bryner%netscape.com 2002-09-29 05:37:48 +00:00
Родитель d5d4febdd6
Коммит 9faa3a2a4e
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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()