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 241373 - horizontal scrollbar moves to beginning after pasting text
Summary: horizontal scrollbar moves to beginning after pasting text
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: XSL (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-04 10:25 UTC by krtcom
Modified: 2016-07-07 09:56 UTC (History)
0 users

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 krtcom 2014-02-04 10:25:05 UTC
Product Version: NetBeans IDE 7.4 (Build 201310111528)
Updates: NetBeans IDE is updated to version NetBeans 7.4 Patch 2
Java: 1.7.0_51; Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Runtime: Java(TM) SE Runtime Environment 1.7.0_51-b13
System: Linux version 3.2.0-58-generic running on amd64; UTF-8; en_US (nb)

When editing xsl file that has some lines which exceed screen size horizontal scrollbar appears as expected.

However, after moving the scrollbar to certain position and pasting some text at that position, the scrollbar and whole viewport resets its position to the beginning of the line (or as much to the left as needed to still be able to see the text cursor). 

It also does not happen right after pasting, but there is a short delay as if some processing was done in the background and then the editor content was refreshed but with incorrect scrollbar position.

The same behavior can be experienced after deleting text at certain position when horizontally scrolled.

It does not matter if I use paste/delete shortcut or go through menu Edit > Paste or Delete, it has the same effect.

It would be nice if horizontal scrollbar position was remembered before whatever magic goes on in background during paste/delete action and restored after its done.
Comment 1 Martin Balin 2016-07-07 09:56:09 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss