Commit 443b63e3 authored by yurys@chromium.org's avatar yurys@chromium.org
Browse files

2011-02-15 Yury Semikhatsky <yurys@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: console auto-scroll is broken when there are both scrollers.
        https://bugs.webkit.org/show_bug.cgi?id=54273

        * inspector/front-end/utilities.js:
        (Element.prototype.isScrolledToBottom): use clientHeight instead of offsetHeight to determine
        whether the element is scrolled to the bottom.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78554 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a924196b
2011-02-15 Yury Semikhatsky <yurys@chromium.org>
Reviewed by Pavel Feldman.
Web Inspector: console auto-scroll is broken when there are both scrollers.
https://bugs.webkit.org/show_bug.cgi?id=54273
* inspector/front-end/utilities.js:
(Element.prototype.isScrolledToBottom): use clientHeight instead of offsetHeight to determine
whether the element is scrolled to the bottom.
2011-02-14 Alexander Pavlov <apavlov@chromium.org>
 
Reviewed by Yury Semikhatsky.
......@@ -218,7 +218,8 @@ Element.prototype.pruneEmptyTextNodes = function()
Element.prototype.isScrolledToBottom = function()
{
return this.scrollTop === this.scrollHeight - this.offsetHeight;
// This code works only for 0-width border
return this.scrollTop + this.clientHeight === this.scrollHeight;
}
Node.prototype.enclosingNodeOrSelfWithNodeNameInArray = function(nameArray)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment