-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flash.text.Textfield selected scrolls down, last line doesn't displayed in some case #3264
Comments
It depends a bit how the text is wrapped. If you add a few more words so that the final sentence only goes a little in to the line, but the mouse is to the right of this, then it won't display the final line. But if you move your mouse to the left so that it's vertically underneath where the full stop should be, then the final scroll happens. Seems to be related to the fact that the selections don't actually go to the end of the line (or the start, if you're moving your mouse above the text field), although this particular behaviour does then match notepad (and HTML/Edge, just looking at this editor itself...) But a fairly easy fix, there are some conditions about the scroll amount vs selection position, but ultimately if you're dragging downwards on a text field, it should always scroll. FYI we also found that the auto-scroll doesn't properly select the text if you hold the mouse still. So e.g. start a selection at the top of the text field, quickly move your mouse down to below the text field and then stop it moving, the text field should scroll down line by line with the selection expanding to match... but although the scrolling works, the selection doesn't. Interesting, these problems seem to have been in the TextField control for many many years..?! thanks |
I tried spark.components.TextArea using TLF, it doesn't have this behaviors, but mx.controls.TextArea using flash.text.TextField have the same behaviors.
|
Problem Description
when I select the text and move the mouse down, the last line is selected but not visible (flash.text.Textfield doesn't scroll to see the last line) if the mouse is positioned on the right of the textfield.
Steps to Reproduce
when I select the text and move the mouse down, the last line is selected but not visible (flash.text.Textfield doesn't scroll to see the last line) if the mouse is positioned on the right of the textfield.
Actual result :
![Sans titre](https://private-user-images.githubusercontent.com/6962232/333334200-5f28d59a-8923-4f99-b27a-e25b04c6b7df.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI0MzEzMzUsIm5iZiI6MTcyMjQzMTAzNSwicGF0aCI6Ii82OTYyMjMyLzMzMzMzNDIwMC01ZjI4ZDU5YS04OTIzLTRmOTktYjI3YS1lMjViMDRjNmI3ZGYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDczMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MzFUMTMwMzU1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTFiODJmMzU2YTQ5NjAwNGEwOTRmMmM2ZTY1MDU2OWNjNDdjYzkwZWQ3Mjg4M2M5NzNmYmExMGM0MGVjYmNmZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.H6tr57ZiThU2j0Rl4wbO1YRbAtU0WJfjZK3mR12RGoM)
Expected result :
![Sans titre2](https://private-user-images.githubusercontent.com/6962232/333335531-e4ed3695-40e5-43c4-ad35-4d37af7433fe.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI0MzEzMzUsIm5iZiI6MTcyMjQzMTAzNSwicGF0aCI6Ii82OTYyMjMyLzMzMzMzNTUzMS1lNGVkMzY5NS00MGU1LTQzYzQtYWQzNS00ZDM3YWY3NDMzZmUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDczMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MzFUMTMwMzU1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZmE5Njk1N2UzNzk3YjkwNTFmY2FiN2NjYTQ0MWVlMzFiOTc5YWU1MGRlZWU2Y2M0MGJlOTgyODM1MDUzOGRkOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.-9tNMpFKRUZn1QmFG4K3jDHyN05SzWb6yPVnL-ybDgQ)
Known Workarounds
No workaround
The text was updated successfully, but these errors were encountered: