Bug 140281

Summary: Web Inspector: Vertically center selected line of the content view while resizing the Inspector
Product: WebKit Reporter: Nikita Vasilyev <nvasilyev>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: graouts, inspector-bugzilla-changes, jonowells, saam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Animated GIF none

Description Nikita Vasilyev 2015-01-08 19:48:57 PST
Created attachment 244318 [details]
Animated GIF

See the attached animated GIF. The expected behavior would be to keep the selected line in the middle of the content view.
Comment 1 Radar WebKit Bug Importer 2015-01-08 19:49:10 PST
<rdar://problem/19422419>
Comment 2 Timothy Hatcher 2015-01-08 19:52:46 PST
Agreed. 

However, after jumping to a line we don't remember that line as being selected, other than the sidebar. The user is free to scroll and click around more.

This should just be about keeping the caret centered/visible. I think jumping to a line moves the text caret, if not, we can do that.
Comment 3 Nikita Vasilyev 2015-07-30 19:03:46 PDT
*** Bug 147479 has been marked as a duplicate of this bug. ***
Comment 4 Nikita Vasilyev 2015-07-30 19:27:58 PDT
I would expect CodeMirror to handle this by default. I just tested CodeMirror 5.5.0 and it has the same problem: http://jsbin.com/vodiyu.