Fix for bug 115446. Need to remove attribute width or height of boxes around splitters when caching a compose window. R=dmose, SR=sspitzer

This commit is contained in:
ducarroz%netscape.com 2002-01-10 22:43:28 +00:00
parent f9a7f24be9
commit 55f0d88e17
2 changed files with 9 additions and 3 deletions

View File

@ -183,6 +183,12 @@ var gComposeRecyclingListener = {
disableEditableFields()
ReleaseGlobalVariables();
//Reset Boxes size
document.getElementById("headers-box").removeAttribute("height");
document.getElementById("appcontent").removeAttribute("height");
document.getElementById("addresses-box").removeAttribute("width");
document.getElementById("attachments-box").removeAttribute("width");
//Release the nsIMsgComposeParams object
if (window.arguments && window.arguments[0])
window.arguments[0] = null;

View File

@ -176,7 +176,7 @@
<menuitem label="&selectAll.label;" accesskey="&selectAll.accesskey;" command="cmd_selectAll"/>
</popup>
<toolbox class="toolbox-top">
<toolbox class="toolbox-top" id="headers-box">
<menubar id="compose-menubar" grippytooltiptext="&menuBar.tooltip;">
<menu id="menu_File">
<menupopup id="menu_FilePopup">
@ -393,7 +393,7 @@
<toolbar id="MsgHeadersToolbar" persist="collapsed" tborient="vertical" tbalign="stretch" flex="1" grippytooltiptext="&addressBar.tooltip;">
<hbox id="msgheaderstoolbar-box" flex="1">
<vbox flex="75">
<vbox flex="75" id="addresses-box">
<hbox align="center">
<label value="&fromAddr.label;"/>
<menulist id="msgIdentity" label="..." flex="1" oncommand="LoadIdentity(false);">
@ -408,7 +408,7 @@
</hbox>
</vbox>
<splitter id="attachmentbucket-sizer" collapse="after"/>
<vbox flex="25">
<vbox flex="25" id="attachments-box">
<label id="attachmentBucketText" value="&attachments.label;" crop="right"
accesskey="&attachments.accesskey;"/>
<tree id="attachmentBucket" class="inset toolbar" flex="1" style="height: 0px; width: 0px;"