Skip to content

Decouple translateX/Y from layout pane calculations #32

Description

@SomeSourceCode

Description

Currently only the layoutX and layoutY coordinates are used for rendering and click detection. This means layout panes must manually add each child’s translateX and translateY to their layout calculations.

This responsibility should not fall on layout panes. Instead, the framework should automatically calculate the sum of layout and translate coordinates. Keeping layout and translate as separate concepts while introducing new x/y coordinates (always reflecting the sum) would resolve this.

With this change, rendering and click detection would behave more predictably, especially for custom pane implementations, and layout panes would remain simpler and less error‑prone.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions