mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 09:05:45 +00:00
removing (temporary) JS code to persist navigator window position and size (now handled in C code). r:hyatt
This commit is contained in:
parent
8f27d320f0
commit
130189715b
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user