Skip to content
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

Fix direction of WBoxLayout when implementing as flex #226

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TavakoliAli
Copy link

As explained here, flex-direction:row causes flex items to be laid out in the browser's default language direction (or body tag direction), but the FlexLayoutImpl::styleFlex() function always returns row for LayoutDirection::LeftToRight, whereas if the document direction is RTL, it should return row-reverse, and vice versa. To fix this problem, you should also consider the page orientation when specifying the flex-direction value.

Flex orientation is affected by document orientation, which was not
considered during implementation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant