Project

General

Profile

Actions

Improvements #14078

closed

Enhanced LTR/RTL support

Added by Matthias Van Ceulebroeck 9 months ago. Updated 24 days ago.

Status:
Closed
Priority:
Low
Target version:
Start date:
10/30/2025
Due date:
% Done:

0%

Estimated time:

Description

Currently, depending on the layout direction of the app, Wt will go through logic to set the properties of offsets on the left and right correctly.
Meaning a call like cpp setOffset(5, Wt::Side::Right) will result in a css margin-right: 5px in a LTR localization, and a css margin-left: 5px in a RTL environment.
While this works, this relies on the developer to always keep this in mind, and allows for easily being overlooked.

Now enter {margin/padding}-inline (border may also be considered).
For example see margin-inline-start.

This offers an easy way to set the margin, and make it depend on the layout direction. This will avoid having to manually switch the values in logic, and delegate that to the browser.

Actions #1

Updated by Romain Mardulyn 9 months ago

  • Status changed from New to InProgress
  • Assignee set to Romain Mardulyn
Actions #2

Updated by Romain Mardulyn 7 months ago

  • Status changed from InProgress to Review
  • Assignee deleted (Romain Mardulyn)
Actions #3

Updated by Romain Mardulyn 4 months ago

  • Target version changed from 4.13.0 to 4.14.0
Actions #4

Updated by Romain Mardulyn about 1 month ago

  • Priority changed from Normal to Low
Actions #5

Updated by emil de keyser about 1 month ago

  • Assignee set to emil de keyser
Actions #6

Updated by emil de keyser about 1 month ago

  • Assignee changed from emil de keyser to Romain Mardulyn
Actions #7

Updated by emil de keyser about 1 month ago

  • Status changed from Review to Resolved
Actions #8

Updated by Romain Mardulyn about 1 month ago

  • Status changed from Resolved to Implemented @Emweb
Actions #9

Updated by Romain Mardulyn 24 days ago

  • Status changed from Implemented @Emweb to Closed
Actions

Also available in: Atom PDF