-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
When remove child lane in diagram, other related lane and diagram deformed #1253
Comments
What is the last version of bpmn-js that worked here? |
I used verion 3.0.4 and I've not any problem. I tested on online demo and see this problem. |
I expected something linke " |
@nikku |
The last version which worked is |
Thanks for verifying this @pinussilvestrus. |
I've updated the issue description accordingly. |
With diagram-js@5 we've introduced the CreateBehavior that ensures elements are not created on top of lanes but always on top of the actual participant. Unfortunately we forgot about the fact that lanes are created once in a while, too. This commit accounts for this fact and ensures we do not adjust the parent of to-be-created lanes. (A test cases for splitting nested lanes did not exist until now). Closes #1254 Closes #1253
This is tightly related to #1254, let me elaborate: Due to a bug introduced with bpmn-js@5 nested lanes are not properly serialized to the BPMN 2.0 anymore. In fact, they are always serialized as a direct child of the participant/pool root. As a result, our layout algorithm fails. |
With diagram-js@5 we've introduced the CreateBehavior that ensures elements are not created on top of lanes but always on top of the actual participant. Unfortunately we forgot about the fact that lanes are created once in a while, too. This commit accounts for this fact and ensures we do not adjust the parent of to-be-created lanes. (A test cases for splitting nested lanes did not exist until now). Closes #1254 Closes #1253
Closed via #1256. |
Describe the Bug
If you create bpmn model in new version at bpmn online demo and need to create multiple child lanes in a parent lane, when remove any child from parent, diagram deformed and sometimes you can not continue edit diagram.
Steps to Reproduce
I created a diagram in demo.bpmn.io like this :
And need to remove a child lane, when remove child, diagram deformed, like this:
Environment
v5.x
,v6.x
Works in
v3.0.1
andv4.0.1
.The text was updated successfully, but these errors were encountered: