Bug 638980 - Status bar should only have progress meter showing whilst loading stuff
authorIan Neal <iann_cvs@blueyonder.co.uk>
Sat, 12 Mar 2011 01:02:00 +0000
changeset 7329 1e34839acfdd4e83ab80d44693e555285668407b
parent 7328 fde57bc11aca6d31187328ae3019c00ff6aec21b
child 7330 8c28537630df5e02d1970d4fdef5a1ec5fd23542
push idunknown
push userunknown
push dateunknown
bugs638980
Bug 638980 - Status bar should only have progress meter showing whilst loading stuff r=standard8 ui-r=clarkbw
mail/components/compose/content/MsgComposeCommands.js
mail/components/compose/content/messengercompose.xul
--- a/mail/components/compose/content/MsgComposeCommands.js
+++ b/mail/components/compose/content/MsgComposeCommands.js
@@ -323,23 +323,25 @@ var stateListener = {
 
 // all progress notifications are done through the nsIWebProgressListener implementation...
 var progressListener = {
     onStateChange: function(aWebProgress, aRequest, aStateFlags, aStatus)
     {
       if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_START)
       {
         document.getElementById('compose-progressmeter').setAttribute( "mode", "undetermined" );
+        document.getElementById("statusbar-progresspanel").collapsed = false;
       }
 
       if (aStateFlags & Components.interfaces.nsIWebProgressListener.STATE_STOP)
       {
         gSendOrSaveOperationInProgress = false;
         document.getElementById('compose-progressmeter').setAttribute( "mode", "normal" );
         document.getElementById('compose-progressmeter').setAttribute( "value", 0 );
+        document.getElementById("statusbar-progresspanel").collapsed = true;
         document.getElementById('statusText').setAttribute('label', '');
       }
     },
 
     onProgressChange: function(aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress)
     {
       // Calculate percentage.
       var percent;
--- a/mail/components/compose/content/messengercompose.xul
+++ b/mail/components/compose/content/messengercompose.xul
@@ -838,14 +838,16 @@
   </panel>
 
   <hbox>
     <notificationbox id="attachmentNotificationBox" flex="1" />
   </hbox>
 
   <statusbar id="status-bar" class="chromeclass-status">
     <statusbarpanel id="statusText" flex="1"/>
-    <statusbarpanel class="statusbarpanel-progress" id="statusbar-progresspanel">
+    <statusbarpanel id="statusbar-progresspanel"
+                    class="statusbarpanel-progress"
+                    collapsed="true">
       <progressmeter id="compose-progressmeter" class="progressmeter-statusbar" mode="normal" value="0"/>
     </statusbarpanel>
   </statusbar>
 
 </window>