Bug 1610207 - Record Today Pane width whenever it changes. r+a=pmorris
authorGeoff Lankow <geoff@darktrojan.net>
Tue, 28 Jan 2020 11:55:19 +1300
changeset 37900 943d4e0ca6b6de06aea8a82ed3de457b6b427ce0
parent 37899 23b28595c244282bfafed736048e9d48e5b92033
child 37901 f6219b04be6d83cd8bc0bf968bbf619708b6a2e2
push id397
push userclokep@gmail.com
push dateMon, 10 Feb 2020 21:16:13 +0000
bugs1610207
Bug 1610207 - Record Today Pane width whenever it changes. r+a=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.
    */