Actions
Improvements #14078
closed
MV
RM
Enhanced LTR/RTL support
Improvements #14078:
Enhanced LTR/RTL support
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.
RM Updated by Romain Mardulyn 10 months ago
- Status changed from New to InProgress
- Assignee set to Romain Mardulyn
RM Updated by Romain Mardulyn 8 months ago
- Status changed from InProgress to Review
- Assignee deleted (
Romain Mardulyn)
RM Updated by Romain Mardulyn 5 months ago
- Target version changed from 4.13.0 to 4.14.0
RM Updated by Romain Mardulyn 2 months ago
- Priority changed from Normal to Low
ED Updated by emil de keyser 2 months ago
- Assignee set to emil de keyser
ED Updated by emil de keyser 2 months ago
- Assignee changed from emil de keyser to Romain Mardulyn
ED Updated by emil de keyser 2 months ago
- Status changed from Review to Resolved
RM Updated by Romain Mardulyn 2 months ago
- Status changed from Resolved to Implemented @Emweb
RM Updated by Romain Mardulyn about 2 months ago
- Status changed from Implemented @Emweb to Closed
Actions