Project

General

Profile

Actions

Improvements #14078

closed
MV RM

Enhanced LTR/RTL support

Improvements #14078: Enhanced LTR/RTL support

Added by Matthias Van Ceulebroeck 10 months ago. Updated about 2 months 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.

RM Updated by Romain Mardulyn 10 months ago Actions #1

  • Status changed from New to InProgress
  • Assignee set to Romain Mardulyn

RM Updated by Romain Mardulyn 8 months ago Actions #2

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

RM Updated by Romain Mardulyn 5 months ago Actions #3

  • Target version changed from 4.13.0 to 4.14.0

RM Updated by Romain Mardulyn 2 months ago Actions #4

  • Priority changed from Normal to Low

ED Updated by emil de keyser 2 months ago Actions #5

  • Assignee set to emil de keyser

ED Updated by emil de keyser 2 months ago Actions #6

  • Assignee changed from emil de keyser to Romain Mardulyn

ED Updated by emil de keyser 2 months ago Actions #7

  • Status changed from Review to Resolved

RM Updated by Romain Mardulyn 2 months ago Actions #8

  • Status changed from Resolved to Implemented @Emweb

RM Updated by Romain Mardulyn about 2 months ago Actions #9

  • Status changed from Implemented @Emweb to Closed
Actions

Also available in: PDF Atom