wiln / flexlib

Automatically exported from code.google.com/p/flexlib
0 stars 0 forks source link

Highlighter component does not account for horizontal scroll position #225

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a Textfield and attach Highlighter.as to it
2. Create a case where you will highlight a piece of text
3. Scroll horizontally, the text should move while the highlight stays in 
place, essentially StringBoundaries.as is not compensating for horizontal 
scroll (scrollH) offset.

What is the expected output? What do you see instead?

Scroll horizontally, the text should move while the highlight stays in 
place, essentially StringBoundaries.as is not compensating for horizontal 
offset.

The highlight should align with the text regardless of horizontal scroll 
position of the textfield

What version of the product are you using? On what operating system?
2.4 on firefox

Original issue reported on code.google.com by btal...@gmail.com on 20 May 2009 at 5:51

GoogleCodeExporter commented 8 years ago
I've a similar problem.

I compare two files which differences are painted in red (old) green (new).

My textfield belongs a textarea which parent are: 
<-Hbox<-VBox<-HDividedBox<-Panel,
as you can see at the FlexSpy window.

When I scroll the textarea (left or righth) then text is scrolled while 
highlighter
remains fixed.

The vertical scroll works fine.

I'll attach two pictures, then you can see how the highlighter remains fixed on 
the 
left.

Original comment by pbeltranl on 17 Jul 2009 at 1:00

Attachments: