Change philip-20110504-dwc by philip@PHILIP-I7 on 2011-05-04 12:25:05 EDT
    in /cygdrive/c/clients/laszlo/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Add bidi support for edittext

New Features:

Bugs Fixed: LPP-9926

Technical Reviewer: hqm
QA Reviewer: [email protected]
Doc Reviewer: (pending)

Documentation:

Release Notes:

Overview:
The edittext component doesn't support bidi because the input text is a child view of edittext. I used a new bidi mixin to add the attributes to edittext and then added constraints on the input text.

Details:
LzText.lzx - To prevent swf errors, an additional check is needed before setting the direction (hasdirectionallayout must be true).

bidi.lzx - mixin with attributes for hasdirectionallayout and direction. These exactly match the definitions in LaszloView.lzs.

edittext.lzx - Use the mixin on edittext, and added two constraints to _internalinputtext component.


Tests:
See test case attached to jira report. I got the example from here:
http://www.i18nguy.com/markup/right-to-left.html

Files:
M       WEB-INF/lps/lfc/views/LzText.lzs
M       lps/components/lz/edittext.lzx
A       lps/components/mixins/bidi.lzx

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/philip-20110504-dwc.tar

Reply via email to