New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 599807 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit 29 days ago
Closed: Jul 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Elements Panel scrolls to top of script code when selected for editing somewhere further down

Reported by ferndrig...@gmail.com, Apr 1 2016

Issue description

Chrome Version       : 49.0.2623.110 m
URLs (if applicable) : http://www.ii-nami.com/gt-hitotsuba
Other browsers tested:
  Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
     Safari: -
    Firefox: -
         IE: -

What steps will reproduce the problem?
(1) Inspect video element (top center of page)
(2) Open script below the object element, which starts with "(function(){ function dispatchVideogEvent(data){ ..."
(3) Select script > script has focus and has now white text on blue background
(4) Scroll down a bit, such that the top of the script is not in the console viewport anymore
(5) Double click on any script line of your choosing

What is the expected result?
Like in ANY other text editor, I expect the cursor to be at the clicked position, and the text staying the same as before the double click

What happens instead?
There is NO cursor (at the clicked position). Instead, the WHOLE script gets focused and "ready to edit". Therefore, I lose my current scroll position and have to start at the top of the script to scroll down to the right position again before I can make any edit.


Please provide any additional information below. Attach a screenshot if
possible.

 
sourcecode.png
63.3 KB View Download
If you have trouble finding the script, you can see its path in the screenshot - or take any other multiline script of your choosing.
The main reason I would classify this as a bug, is because this behaviour differs from the behaviour when editing other tags, for example a "div" tag.
Components: Platform>DevTools>Editing
Owner: lushnikov@chromium.org
Status: Assigned (was: Unconfirmed)
Andrey, please take a look.
Owner: l...@chromium.org

Comment 6 by l...@chromium.org, May 31 2016

Owner: lushnikov@chromium.org
Summary: Elements Panel scrolls to top of script code when selected for editing somewhere further down (was: Console scrolls to top of script code when selected for editing somewhere further down)
Looks like this is Elements Panel related, not Console.
Status: WontFix (was: Assigned)
The same behavior happens for both DIV tags with long text and script tags.

As far as you provide inline script with sourceURL, you would be able to edit/debug it conveniently in the Sources panel.
Components: Platform>DevTools>Authoring
Components: Platform>DevTools

Sign in to add a comment