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

Control points do not update on from/to extent change #510

Open
JanBliznicenko opened this issue Feb 26, 2023 · 1 comment
Open

Control points do not update on from/to extent change #510

JanBliznicenko opened this issue Feb 26, 2023 · 1 comment

Comments

@JanBliznicenko
Copy link
Contributor

Control points of lines connected to a shape are updated when position of the shape is changed, but not when extent is changed. For default (Centered) attach point, it does not matter, but for all other attach points, it does - when the shape is resized, the line does not move even if it should. Only way to hotfix it from user end is to have extent event subscriptions that call update on the lines or updateConnectedLines on the shapes that can be resized.

c := RSCanvas new.
b1 := RSBox new.
b1 size: 100.
b1 translateTo: -150@0.
b2 := RSBox new.
b2 size: 100.
b2 translateTo: 150@0.
l := RSLine new.
l from: b1; to: b2.
l withBorderAttachPoint.
c add: b1; add: b2; add: l.

c open.

b1 size: 10

obrazek

@akevalion
Copy link
Contributor

Moved to pharo-graphics/Roassal

@akevalion akevalion reopened this Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants