Skip to content

LAYOUT_LANDSCAPE() rotates the Lay_* directions too #376

@kirchsth

Description

@kirchsth

The "new" LAYOUT_LANDSCAPE() function offers a significant advantage: it maintains the orientation of Rel_* relationships. For example, Rel_Up(a, bUp, ...) correctly positions bUp above a.

In contrast, the "old" LAYOUT_LEFT_RIGHT() function rotates Rel_Up(a, bUp, ...), resulting in bUp being positioned to the left of a.

However, the Lay_* functions were not updated accordingly and still apply rotation. As a result, Lay_Up(a, bUp) positions bUp to the left of a.

To address this, new LAY_* functions need to be introduced to allow layouts without rotation.

The fix (new LAY_* functions) could be following:

LAY_U(a, bUp)
LAY_R(a, cRight)
LAY_D(a, dDown)
LAY_L(a, eLeft)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions