Skip to content

Flip horizontal offsets for RTL in column layout#38

Merged
geom3trik merged 1 commit into
mainfrom
rtl-fix
Apr 25, 2026
Merged

Flip horizontal offsets for RTL in column layout#38
geom3trik merged 1 commit into
mainfrom
rtl-fix

Conversation

@geom3trik
Copy link
Copy Markdown
Collaborator

Adjust absolute-positioned child handling so horizontal offsets are mirrored only when the layout is a Column in RTL. Use is_row_rtl for determining main-axis before/after ordering, and conditionally swap cross_before/cross_after only when is_rtl && layout_type == LayoutType::Column. Add a unit test (rtl_absolute_in_column_only_flips_horizontal_offsets) to verify left becomes trailing in RTL while top remains unchanged.

Adjust absolute-positioned child handling so horizontal offsets are mirrored only when the layout is a Column in RTL. Use is_row_rtl for determining main-axis before/after ordering, and conditionally swap cross_before/cross_after only when is_rtl && layout_type == LayoutType::Column. Add a unit test (rtl_absolute_in_column_only_flips_horizontal_offsets) to verify left becomes trailing in RTL while top remains unchanged.
@geom3trik geom3trik merged commit e7e5fe3 into main Apr 25, 2026
4 checks passed
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