Bug 140281 - Web Inspector: Vertically center selected line of the content view while resizing the Inspector
Summary: Web Inspector: Vertically center selected line of the content view while resi...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
: 147479 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-01-08 19:48 PST by Nikita Vasilyev
Modified: 2016-12-13 15:35 PST (History)
5 users (show)

See Also:


Attachments
Animated GIF (1.04 MB, image/gif)
2015-01-08 19:48 PST, Nikita Vasilyev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.