Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

[WEEX-282][iOS] update layout system to support rtl direction #1105

Merged
merged 1 commit into from
Apr 12, 2018

Conversation

win80540
Copy link
Contributor

@win80540 win80540 commented Apr 9, 2018

Update WXComponent+layout.m to support CSS "direction:rtl".
Few languages such as Arabic, Hebrew, or Persian are written from Right to Left, but weex not support RTL layouts. To handle them. Since this PR merged, we can use weex for RTL languages.

Modified WXComponent+Layout.m:
1.set direction value to cssNode
2.setNeedLayout changed to trigger sibling component recalculate cssNode->layout

Modified WXConvert.h/m:
add convert for "direction"

Modified WXConvertTests.m:
add Tests for convert direction

Modified WXComponent+Layout.m:
	1.set direction value to  cssNode
	2.setNeedLayout changed to trigger sibling component recalculate cssNode->layout

Modified WXConvert.h/m:
	add convert for "direction"

Modified WXConvertTests.m:
	add Tests for convert direction
@weex-bot
Copy link

weex-bot commented Apr 9, 2018

Messages
📖 has no android file changed.
📖 android test finished.

Generated by 🚫 dangerJS

@asfgit asfgit merged commit 487b692 into apache:master Apr 12, 2018
@acton393
Copy link
Member

@win80540 thanks for you contribution

xuyouyang pushed a commit to xuyouyang/incubator-weex that referenced this pull request Apr 21, 2018
xuyouyang pushed a commit to xuyouyang/incubator-weex that referenced this pull request Apr 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants