Bug 649099 - 'resize.info is null' when resizing groupItems [f=raymond, r=ian]
authorTim Taubert <tim.taubert@gmx.de>
Thu, 14 Apr 2011 06:06:39 +0200
changeset 68169 6726b03c2b25f591f8e580283fc49640943fde7d
parent 68168 a51ecdeca4a89346d0f206d51f5b23d0bad1840b
child 68170 b1fc69fab8b2a08ec85025a5e6e16d9fa76a7a31
push id19528
push usereakhgari@mozilla.com
push dateFri, 15 Apr 2011 13:35:33 +0000
treeherdermozilla-central@754e793c647e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersian
bugs649099
milestone6.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 649099 - 'resize.info is null' when resizing groupItems [f=raymond, r=ian]
browser/base/content/tabview/groupitems.js
--- a/browser/base/content/tabview/groupitems.js
+++ b/browser/base/content/tabview/groupitems.js
@@ -1783,17 +1783,22 @@ GroupItem.prototype = Utils.extend(new I
   // ----------
   // Function: setResizable
   // Sets whether the groupItem is resizable and updates the UI accordingly.
   setResizable: function GroupItem_setResizable(value, immediately) {
     var self = this;
 
     this.resizeOptions.minWidth = GroupItems.minGroupWidth;
     this.resizeOptions.minHeight = GroupItems.minGroupHeight;
-    this.resizeOptions.start = function () self._unfreezeItemSize();
+
+    let start = this.resizeOptions.start;
+    this.resizeOptions.start = function (event) {
+      start.call(self, event);
+      self._unfreezeItemSize();
+    }
 
     if (value) {
       immediately ? this.$resizer.show() : this.$resizer.fadeIn();
       this.resizable(true);
     } else {
       immediately ? this.$resizer.hide() : this.$resizer.fadeOut();
       this.resizable(false);
     }