Bug 753807 - Land in comm-central Instantbird's changes to chat/ - Bio 1389 - Warning: reference to undefined property this._lastScrollHeight, r=clokep.
authoraleth <aletheia2@fastmail.fm>
Wed, 25 Apr 2012 00:04:27 +0200
changeset 12148 1d16346cd1b6d835de530067488bf61803b58692
parent 12147 72b0aeacb898d4ab826bcaff1510b4586a705c6f
child 12149 3f522691ebaa110602f3b2682ea5507d5ba7c931
push id599
push usermconley@mozilla.com
push dateMon, 16 Jul 2012 20:33:12 +0000
treeherdercomm-beta@c3489d5b7b65 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersclokep
bugs753807
Bug 753807 - Land in comm-central Instantbird's changes to chat/ - Bio 1389 - Warning: reference to undefined property this._lastScrollHeight, r=clokep.
chat/content/convbrowser.xml
--- a/chat/content/convbrowser.xml
+++ b/chat/content/convbrowser.xml
@@ -558,17 +558,18 @@
             if (this._scrollingIntoView) {
               // We have explicitely requested a scrollIntoView, ignore the event
               this._scrollingIntoView = false;
               this._lastScrollHeight = this.scrollHeight;
               this._lastScrollWidth = this.scrollWidth;
               return;
             }
 
-            if (this._lastScrollHeight != this.scrollHeight ||
+            if (!(_lastScrollHeight in this) ||
+                this._lastScrollHeight != this.scrollHeight ||
                 this._lastScrollWidth != this.scrollWidth) {
               // if the scrollheight changed, we are resizing the content area,
               // don't stop the auto scroll.
               this._lastScrollHeight = this.scrollHeight;
               this._lastScrollWidth = this.scrollWidth;
               return;
             }