зеркало из https://github.com/mozilla/pjs.git
removing JS for persisting position and size (now handled automatically by C code)
This commit is contained in:
Родитель
dc4317097d
Коммит
e61e030fc9
|
@ -41,7 +41,7 @@ Rights Reserved.
|
|||
align="vertical"
|
||||
width="750"
|
||||
height="500"
|
||||
persist="width height x y"
|
||||
persist="width height screenX screenY"
|
||||
windowtype="mail:3pane">
|
||||
|
||||
|
||||
|
|
|
@ -214,25 +214,6 @@ function OnUnloadMessenger()
|
|||
messenger.SetWindow(null, null);
|
||||
}
|
||||
}
|
||||
|
||||
saveWindowPosition();
|
||||
}
|
||||
|
||||
function saveWindowPosition()
|
||||
{
|
||||
// Get the current window position/size.
|
||||
var x = window.screenX;
|
||||
var y = window.screenY;
|
||||
var h = window.outerHeight;
|
||||
var w = window.outerWidth;
|
||||
|
||||
// Store these into the window attributes (for persistence).
|
||||
var win = document.getElementById( "messengerWindow" );
|
||||
win.setAttribute( "x", x );
|
||||
win.setAttribute( "y", y );
|
||||
win.setAttribute( "height", h );
|
||||
win.setAttribute( "width", w );
|
||||
// save x, y, width, height
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче