From e61e030fc9dfdfead6d91a3b324aa856fc13fcb6 Mon Sep 17 00:00:00 2001 From: "danm%netscape.com" Date: Fri, 14 Jan 2000 00:09:50 +0000 Subject: [PATCH] removing JS for persisting position and size (now handled automatically by C code) --- mailnews/base/resources/content/messenger.xul | 2 +- .../resources/content/msgMail3PaneWindow.js | 19 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/mailnews/base/resources/content/messenger.xul b/mailnews/base/resources/content/messenger.xul index 799910092a0..481691efea7 100644 --- a/mailnews/base/resources/content/messenger.xul +++ b/mailnews/base/resources/content/messenger.xul @@ -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"> diff --git a/mailnews/base/resources/content/msgMail3PaneWindow.js b/mailnews/base/resources/content/msgMail3PaneWindow.js index c307ca08cec..b4d2d931007 100644 --- a/mailnews/base/resources/content/msgMail3PaneWindow.js +++ b/mailnews/base/resources/content/msgMail3PaneWindow.js @@ -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 }