-
Notifications
You must be signed in to change notification settings - Fork 18
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
Angular: Minimap content does not show up immediately between different tabs #50
Comments
Thanks for sharing this and the demo 👍 I tried it out and saw that the minimap got back after the first time clicking it in the second tab. Afterward, it works perfectly fine across switching. Can you maybe point us to the place where are you importing the diagrams in your example? Maybe there is a simple way to resolve this. |
Yes, I can confirm that. However, if I do the following, the minimap in the second tab works for me
Therefore my question was how you import the different diagrams between the tabs. Maybe the issue that the minimap isn't loading immediately relates to that. |
Ah okay I got it, in this example I wrote the code, in the bpmn-js component I create the diagram with the minimap, and in the app component I send the data for each diagram using for loop( could you please check the code? It might be more helpful) https://stackblitz.com/edit/bpmn-js-minimap-issue?file=src%2Fapp%2Fapp.component.html |
Thanks for sharing. For me, it really looks like the minimap doesn't really get updated visually after the initial import. What you could try is to re-initiate the minimap when you click a tab via I will move the issue to https://github.com/bpmn-io/diagram-js-minimap to track it in the correct project. |
Hello, yeah I re-initiate the minimap in the ngOnChanges method via this.viewer.get('minimap').open(), but we still have the same issue. |
Thanks for responding! I am moving this one to backlog as we have a reproducible sandbox 👍 |
Hello, just need to know if is there any update on this issue?? |
No update. Happy to take a contribution that fixes this. |
Describe the Bug
Kindly check this demo link
https://stackblitz.com/edit/bpmn-js-minimap-issue?file=src%2Fapp%2Fapp.component.html
The main issue is: in the first tab(Xml1) the minimap working good, but when we open the second tab (Xml2), the map is not displayed well (instead of displaying the graph in a yellow border, it is displayed a yellow point)
Steps to Reproduce
After moving around on the canvas, the minimap appears again and works as expected.
Expected Behavior
The minimap shows up correctly immediately.
Environment
The text was updated successfully, but these errors were encountered: