Bug 1610207 - Record Today Pane width whenever it changes. r=pmorris
authorGeoff Lankow <geoff@darktrojan.net>
Tue, 28 Jan 2020 11:55:19 +1300
changeset 38039 228c1b31448af4c5bf8848bfb5ae50eb1d23b068
parent 38038 c07c42028c728ccee7938e88b723bde54a1d0347
child 38040 fefcbe1ff081081f1c99e7a0549889a3e24a7e0d
push id398
push userclokep@gmail.com
push dateMon, 09 Mar 2020 19:10:28 +0000
reviewerspmorris
bugs1610207
Bug 1610207 - Record Today Pane width whenever it changes. r=pmorris
calendar/base/content/today-pane.js
--- a/calendar/base/content/today-pane.js
+++ b/calendar/base/content/today-pane.js
@@ -523,16 +523,18 @@ var TodayPane = {
    * Generates the todaypane toggle command when the today-splitter
    * is being collapsed or uncollapsed.
    */
   onCommandTodaySplitter: function() {
     let todaypane = document.getElementById("today-pane-panel");
     let splitter = document.getElementById("today-splitter");
     let splitterCollapsed = splitter.getAttribute("state") == "collapsed";
 
+    todaypane.setModeAttribute("modewidths", todaypane.getAttribute("width"));
+
     if (splitterCollapsed == todaypane.isVisible()) {
       document.getElementById("calendar_toggle_todaypane_command").doCommand();
     }
   },
 
   /**
    * Checks if the todayPaneStatusLabel should be hidden.
    */