This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 221532 - Cursor jumps to start tag if page is running in browser
Summary: Cursor jumps to start tag if page is running in browser
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P1 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 221646 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-11-06 08:47 UTC by Vladimir Riha
Modified: 2012-11-07 14:11 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2012-11-06 08:47:41 UTC
To reproduce:
- open and run some html file in Chrome or Embedded browser (e.g. sample project)
- in index.html, click on some closing tag, </div>, or some text content

=> cursor jumps to <div>. If you repeat the same again, it is OK unless you click to some other element and then try the first </div> again.

- If page is not running in browser, the problem is not there
- If I use keyboard to get cursor to requested position (or press some key right after mouse click), it stays there so it happens only "on click" action



Product Version: NetBeans IDE 7.3 Beta 2 (Build 201211052012)
Updates: NetBeans IDE is updated to version NetBeans 7.3 Beta 2
Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b11
System: Linux version 3.2.0-32-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2012-11-06 08:59:37 UTC
This could be a beta2 stopper. Marku, could you look at it? It might belong to Inspection component, but I'm not sure
Comment 2 Vladimir Riha 2012-11-06 09:06:37 UTC
Seems like closing Navigator window helps
Comment 3 Marek Fukala 2012-11-06 09:45:27 UTC
I know what the problem is, will be fixed ASAP
Comment 4 Marek Fukala 2012-11-06 14:42:24 UTC
searching for changes
summary:     #221532 - Cursor jumps to start tag if page is running in browser

Honzo, please review. 

IMHO the solution is not ideal , but I couldn't find more reasonable place where to hook the code.
Comment 5 Jan Stola 2012-11-06 15:15:50 UTC
> Honzo, please review.

I have reviewed the changeset. I am fine with this change, it is a reasonable fix of this problem.
Comment 6 Jan Stola 2012-11-06 15:22:27 UTC
The relevant changeset: http://hg.netbeans.org/web-main/rev/1d78b17441e8
Comment 7 Vladimir Riha 2012-11-06 15:36:27 UTC
Thanks for quick fix, verified. Please transplant it to beta2


Product Version: NetBeans IDE Dev (Build web-main-9125-on-20121106)
Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b11
System: Linux version 3.2.0-32-generic-pae running on i386; UTF-8; en_US (nb)
Comment 8 Vladimir Riha 2012-11-06 15:41:00 UTC
Just for the record: Cursor no longer jumps to start tag, elements are properly highlighted in Navigator and CSS rules are propagated into CSS Styles based on cursor position, Inspect Mode in browser also seems to be fine.
Comment 9 Marek Fukala 2012-11-06 15:53:26 UTC
changeset:   246022:cc8eca9f157b
branch:      release73_beta2
date:        Tue Nov 06 15:40:23 2012 +0100
summary:     #221532 - Cursor jumps to start tag if page is running in browser
Comment 10 Quality Engineering 2012-11-07 02:18:06 UTC
Integrated into 'releases', will be available in build *201211062253* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/cc8eca9f157b
User: Marek Fukala <mfukala@netbeans.org>
Log: #221532 - Cursor jumps to start tag if page is running in browser
Comment 11 Quality Engineering 2012-11-07 03:41:31 UTC
Integrated into 'main-golden', will be available in build *201211070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/1d78b17441e8
User: Marek Fukala <mfukala@netbeans.org>
Log: #221532 - Cursor jumps to start tag if page is running in browser
Comment 12 Vladimir Riha 2012-11-07 09:37:50 UTC
verified in beta2

Product Version: NetBeans IDE 7.3 Beta 2 (Build 201211062253)
Updates: NetBeans IDE is updated to version NetBeans 7.3 Beta 2
Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b11
System: Linux version 3.2.0-32-generic-pae running on i386; UTF-8; en_US (nb)
Comment 13 Marek Fukala 2012-11-07 14:11:33 UTC
*** Bug 221646 has been marked as a duplicate of this bug. ***