Changeset 35891 in webkit


Ignore:
Timestamp:
Aug 22, 2008 11:39:42 AM (16 years ago)
Author:
timothy@apple.com
Message:

Fixes a bug where while editing in the Inspector the
sidebar scroll position would jump to the top.

https://bugs.webkit.org/show_bug.cgi?id=20484

Reviewed by Darin Adler.

  • page/inspector/treeoutline.js: (TreeOutline._removeChildren): Remove the offsetTop call that was forcing a layout, since layout causes scroll positions to be clamped to the new scrollHeight/Width. Layout will happen normally when needed.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r35889 r35891  
     12008-08-22  Timothy Hatcher  <timothy@apple.com>
     2
     3        Fixes a bug where while editing in the Inspector the
     4        sidebar scroll position would jump to the top.
     5
     6        https://bugs.webkit.org/show_bug.cgi?id=20484
     7
     8        Reviewed by Darin Adler.
     9
     10        * page/inspector/treeoutline.js:
     11        (TreeOutline._removeChildren): Remove the offsetTop call that
     12        was forcing a layout, since layout causes scroll positions
     13        to be clamped to the new scrollHeight/Width. Layout will happen
     14        normally when needed.
     15
    1162008-08-22  Kevin Ollivier  <kevino@theolliviers.com>
    217
  • trunk/WebCore/page/inspector/treeoutline.js

    r35835 r35891  
    185185
    186186    this.children = [];
    187 
    188     if (this._childrenListNode)
    189         this._childrenListNode.offsetTop; // force layout
    190187}
    191188
Note: See TracChangeset for help on using the changeset viewer.