removing (temporary) JS code to persist navigator window position and size (now handled in C code). r:hyatt

This commit is contained in:
danm%netscape.com 2006-09-14 05:43:56 +00:00
parent 8f27d320f0
commit 130189715b

View File

@ -511,15 +511,6 @@ function createBrowserInstance()
function Startup()
{
// Position window.
var win = document.getElementById( "main-window" );
if (win) {
var x = win.getAttribute( "x" );
var y = win.getAttribute( "y" );
// dump(" move to "+x+" "+y+"\n");
window.moveTo( x, y );
}
// TileWindow();
// Make sure window fits on screen initially
// FitToScreen();
@ -555,19 +546,6 @@ function createBrowserInstance()
}
function Shutdown() {
// 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( "main-window" );
win.setAttribute( "x", x );
win.setAttribute( "y", y );
win.setAttribute( "height", h );
win.setAttribute( "width", w );
// Close the app core.
if ( appCore ) {
appCore.close();