diff --git a/suite/common/bookmarks/addBookmark.js b/suite/common/bookmarks/addBookmark.js index ee7bbf6edeb..1841815cd58 100644 --- a/suite/common/bookmarks/addBookmark.js +++ b/suite/common/bookmarks/addBookmark.js @@ -322,3 +322,14 @@ function toggleGroup() gFld_Name.focus(); onFieldInput(); } + +function persistTreeSize() +{ + if (!document.getElementById("folderbox").hidden) { + var bookmarkView = document.getElementById("bookmarks-view"); + bookmarkView.setAttribute("height", bookmarkView.boxObject.height); + document.persist("bookmarks-view", "height"); + bookmarkView.setAttribute("width", bookmarkView.boxObject.width); + document.persist("bookmarks-view", "width"); + } +} diff --git a/suite/common/bookmarks/addBookmark.xul b/suite/common/bookmarks/addBookmark.xul index 495ee5c2c32..dca127b94a8 100644 --- a/suite/common/bookmarks/addBookmark.xul +++ b/suite/common/bookmarks/addBookmark.xul @@ -41,6 +41,7 @@ ondialogaccept="return onOK(event)" title="&newBookmark.title;" selectFolderTitle="&selectFolder.title;" onload="Startup();" + onunload="persistTreeSize();" persist="screenX screenY" screenX="24" screenY="24"> @@ -94,7 +95,8 @@