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
Label moves twice when using space tool #878
Comments
The problem underlying this bug is that the |
I added a test case that reproduces the issue on the |
Came across this bug again while working on #1019. The problem is that a couple of behaviors kick in after moving and resizing shapes. In the case of using the space tool we don't want that as we're explicitly moving and resizing elements. |
Hints could be a way to to disallow the post-move behavior(s). |
Was thinking about that. Otherwise, the space tool has to be aware of all those behaviors. 💩 |
@nikku something like this? this._modeling.moveElements(shapes, delta, null, {
allowPreExecutionBehavior: true,
allowPostExecutionBehavior: false
}); |
Who performs the pre-execution behavior? Can't we be a bit more explicit? |
Attach support is doing stuff before and afterward. We also have a nice fix for the space tool inside attach support. 💩 It would become obsolete with the new hints. Label support also does stuff before. So we'd actually need to suppress both pre and post behavior. The only thing that would still mess everything up would be label adjustment that moves labels afterward. |
Of course we can also do this._modeling.moveElements(shapes, delta, null, {
attachSupport: false,
labelSupport: false,
...
}); But that would also mean tighter coupling. |
So the question is: Why do we sometimes do stuff If we cannot find a distinguishing hint name based on that, what about this: Add a generic |
The whole space tool / attach support / label support thing is a bit of a mess, I know 👀. |
Yeah, it's quite shaky. Didn't expect to open a can of worms. 🐛 |
We could lookie lookie into dat thing together some day 👓 🏖️ 🌆. |
That would be nicey nicey. 🌞 |
Dear all, We are facing this issue when modeling large diagrams and changing the layout afterwards. Especially, when moving elements with the space tool over a larger distance, the labels get lost and hard to recover. Appreciate any info. Thanks! |
Unfortunately we could not follow up on this bug to date. |
Closed via #1269 |
Describe the Bug
When using the space tool along with the sequence flow the labels will move twice.
Steps to Reproduce
The following reproduces the bug on demo.bpmn.io.
Expected Behavior
The label is only moved once.
Environment
The text was updated successfully, but these errors were encountered: