Bug 47963 - Scrollbar in wrong position if hidden then unhidden
Summary: Scrollbar in wrong position if hidden then unhidden
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: http://www.hunlock.com/blogs/Masterin...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-19 18:40 PDT by Gregg Tavares
Modified: 2011-06-21 11:53 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gregg Tavares 2010-10-19 18:40:18 PDT
What steps will reproduce the problem?
1. go to http://www.hunlock.com/blogs/Mastering_JSON_(_JavaScript_Object_Notation_)#quickIDX8
2. Put the mouse over the code sample under "JSON Via Parse"
3. Scroll the CODE SAMPLE to the bottom using the scrollbar inside the CODE SAMPLE
4. Move the mouse outside the code sample then back over the code sample.

What is the expected output? 

The scrollbar inside the CODE SAMPLE should be at the bottom, matching the state of the CODE SAMPLE.

What do you see instead?

The scrollbar is at the top.

Apparently the issue is that the scrollbar is created and destroyed since "overflow:auto" in only on "hover". When it's re-created it is not initialized to the correct value.

These bugs appear to be the same issue
https://bugs.webkit.org/show_bug.cgi?id=35366
https://bugs.webkit.org/show_bug.cgi?id=26438

It was suggested that Mr. Hyatt might know this part of the code.
Comment 1 Aaron Mars 2011-06-21 11:53:04 PDT
I have confirmed that this still exists using Chrome 14.0.794.0 dev (Linux)