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
+ added pattern and maxlength support for input text
Details:
Now that the LzTLFTextField is instantiated as a child Sprite just
like the conventional TextField, there was a simplification for
handling mouse and cursor events.
The mouse forwarding and cursor selection stuff in LzTextSprite just
seems to work with the new TextField class. So I was able to get rid
of the custom EditManager, SelectionManager classes that I had written
before to do cursor 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:
M test/hello.lzx
A test/tlf/maxscroll.lzx
M test/tlf/text-test.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
M 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
M WEB-INF/lps/lfc/kernel/swf9/Library.lzs
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20100719-hqm-b.tar