Description
Describe the Bug
This bug occurs when a user navigates to a location of the BPMN designer where the flow elements container (djs-overlay-container) is out of view.
I have also noticed that this (form elements container) can also overlap a diagram which is confusing to the users.
This means that a user may have solved all errors and warnings visible but will still see that there are errors or warnings left. In this case they cannot see what the errors or warnings are.
I noticed that the errors / warnings sit in and djs-overlay-container and are always in the same location, unless the errors / warnings are attached to an element in the diagram.
Steps to Reproduce
I can reproduce the error with the playground project.
- Checkout the bpmnlint-playground project
- npm install and npm start
- After navigating to localhost:8080 a diagram is presented to you.
- Highlight the diagram by pressing and holding shift and using the mouse select all the diagram elements
- Now move all the elements to the right. (a large distance)
- Select a start event and drag it to the diagram
- Give the start event a name and connect it to something (the first task for example)
- Validate the BPMN again. You will see 1 error and 6 warnings.
- Warnings are visible however the error is not.
Expected Behavior
The flow elements container errors/warnings should always be visible, regardless where the diagram is placed on the canvas.
Environment
- Host (Browser/Node version), if applicable: Chrome 81.0.4044.138
- OS: macOS Mojave 10.14.6
- Library version: latest