Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Zest 2.0] Ignore node size when calculating position in layout #570

Merged
merged 1 commit into from
Sep 28, 2024

Commits on Sep 27, 2024

  1. [Zest 2.0] Ignore node size when calculating position in layout

    The location of a node describes its top-left pixel, rather than its
    center. When using layout algorithms that are based on the grid layout,
    this causes the offset to be half the space between the rows and columns
    plus the half the width and height of the nodes.
    Latter is undesirable and may cause nodes to be partially moved outside
    the client area.
    
    The same issue can be observed in the other layout algorithms
    (Spring/Tree/Radial) when fitting the nodes into the client area,
    because the same mistake is repeated in the AlgorithmHelper class.
    ptziegler committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    5b880be View commit details
    Browse the repository at this point in the history