Skip to content

fix(table): correct column resize direction in RTL mode#19289

Merged
mehmetcetin01140 merged 1 commit intoprimefaces:masterfrom
O2sa:fix/table-rtl-column-resize
Jan 19, 2026
Merged

fix(table): correct column resize direction in RTL mode#19289
mehmetcetin01140 merged 1 commit intoprimefaces:masterfrom
O2sa:fix/table-rtl-column-resize

Conversation

@O2sa
Copy link
Copy Markdown
Contributor

@O2sa O2sa commented Jan 16, 2026

Fix RTL column resizing in Table

Fixes #19290

Problem

In RTL layouts, resizing table columns behaves in the opposite direction
of the mouse movement.

Solution

  • Detect RTL direction from table host element
  • Invert resize delta only for RTL
  • Preserve existing LTR behavior

Scope

  • Table column resize logic only
  • No breaking changes
  • No visual or API changes
  • No behavior change for LTR
  • No CSS or DOM structure changes

Reproduction

  1. Enable RTL (dir="rtl")
  2. Resize a table column
  3. Observe reversed resizing behavior

Fix Verification

  • Tested in LTR and RTL
  • Mouse movement unchanged
  • Resize direction now matches visual intent

@vercel
Copy link
Copy Markdown

vercel bot commented Jan 16, 2026

Someone is attempting to deploy a commit to the cetincakiroglu's projects Team on Vercel.

A member of the Team first needs to authorize it.

@O2sa O2sa force-pushed the fix/table-rtl-column-resize branch from 313883e to 80ad469 Compare January 16, 2026 19:22
@mehmetcetin01140 mehmetcetin01140 merged commit b580ba4 into primefaces:master Jan 19, 2026
0 of 2 checks passed
@O2sa O2sa deleted the fix/table-rtl-column-resize branch January 23, 2026 01:43
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.

Table column resizing behaves in reverse direction in RTL mode

2 participants