Change 20100719-hqm-b by [email protected] on 2010-07-19 13:21:24 EDT
in /Users/hqm/openlaszlo/trunktlf
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: fix for scrolling in TLF (bidi) textfield
New Features:
Bugs Fixed: LPP-9195 scrolling does not work properly on bidirectional
multiline text fields (when using new TLFTextField)
Technical Reviewer: max
QA Reviewer: ptw
Doc Reviewer: (pending)
Documentation:
Release Notes:
Overview:
+ Added work-alike scrolling APIs to be compatible with flash.text.TextField
Details:
There was a big simplification for handling mouse and cursor events,
now that the LzTLFTextField is instantiated as a child Sprite just
like the native TextField.
All of the mouse forwarding and cursor selection crud in LzTextSprite seems to
work with the new
TextField class. So I could get rid of the custom EditManager,
SelectionManager, and TextContainerManager classes that I had written
before to do cursor, click handling, and mouse event forwarding.
Tests:
test/tlf/maxscroll.lzx
make sure that text scrolls to start and end (maxscroll) for different text
heights
test/tlf/text-test.lzx
make sure that single line input text does not insert linebreaks when you
hit Enter
make sure selectable text has I-beam cursor when mouseover
make sure clickable text has button cursor when mouseover
make sure RTL text responds to cursor arrow controls to move insertion point
Files:
A test/tlf/maxscroll.lzx
D WEB-INF/lps/lfc/kernel/swf9/LzTLFTextSprite.as
D WEB-INF/lps/lfc/kernel/swf9/LzTLFSelectionManager.as
D WEB-INF/lps/lfc/kernel/swf9/LzTLFEditManager.as
M WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
D WEB-INF/lps/lfc/kernel/swf9/LzTextContainerManager.as
M WEB-INF/lps/lfc/kernel/swf9/LzTLFTextField.as
D WEB-INF/lps/lfc/kernel/swf9/LzTLFInputTextSprite.as
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20100719-hqm-b.tar