File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,8 @@ const CSSHTMLNS = "@namespace url(http://www.w3.org/1999/xhtml);";
22
22
// Only do this if we're opened with openDialog, in which case window.opener is set
23
23
if ( window . opener ) {
24
24
var windowPersist = JSON . parse ( prefs . getCharPref ( "editorWindowPersist" ) ) ;
25
- var de = document . documentElement ;
26
- de . width = windowPersist . width ;
27
- de . height = windowPersist . height ;
28
25
window . moveTo ( windowPersist . screenX , windowPersist . screenY ) ;
26
+ window . resizeTo ( windowPersist . width , windowPersist . height ) ;
29
27
if ( windowPersist . windowState == 1 ) {
30
28
//https://bugzilla.mozilla.org/show_bug.cgi?id=1079962
31
29
window . addEventListener ( "load" , function ( ) {
@@ -45,8 +43,8 @@ if (window.opener) {
45
43
// this can fail if this is in a tab. if so, don't save.
46
44
try {
47
45
windowPersist = {
48
- width : document . width ,
49
- height : document . height ,
46
+ width : window . outerWidth ,
47
+ height : window . outerHeight ,
50
48
screenX : window . screenX ,
51
49
screenY : window . screenY
52
50
}
You can’t perform that action at this time.
0 commit comments