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

Vertical participant hit box should contain the top bar #2093

Closed
barmac opened this issue Jan 30, 2024 · 5 comments · Fixed by #2105
Closed

Vertical participant hit box should contain the top bar #2093

barmac opened this issue Jan 30, 2024 · 5 comments · Fixed by #2105
Labels
bug Something isn't working good first issue Good for newcomers modeling spring cleaning Could be cleaned up one day

Comments

@barmac
Copy link
Member

barmac commented Jan 30, 2024

Describe the Bug

The hit box created for a vertical participant is the same as for a horizontal one which leads to confusion.

Steps to Reproduce

Screen.Recording.2024-01-30.at.10.30.15.mov

Expected Behavior

The hit box should contain the top bar and not the space on the left side.

Environment

  • Browser: [e.g. IE 11, Chrome 69]
  • OS: [e.g. Windows 7]
  • Library version: [e.g. 2.0.0]
@barmac barmac added bug Something isn't working backlog Queued in backlog modeling good first issue Good for newcomers spring cleaning Could be cleaned up one day labels Jan 30, 2024
@sombrek
Copy link
Contributor

sombrek commented Feb 8, 2024

This is easy to fix, just a small change in BpmnInteractionEvents.

However, I'm not exactly sure how to tests this. Existing tests don't seem to cover the dimensions or clicks on the hit zone.

@barmac
Copy link
Member Author

barmac commented Feb 13, 2024

Indeed, it looks like a small change. I think the proper tests should also check the dimensions of the hit zones. If you add them for both horizontal and vertical lanes and pools, that will be great.

@sombrek
Copy link
Contributor

sombrek commented Feb 14, 2024

@barmac Thanks for your feedback.

Could you please give me a hint on how I can get the dimensions of the hit zone?
Based on BpmnInteractionEventsSpec I tried to get the hit zone element via domQueryAll('.' + HIT_ALL_CLS, gfx), where gfx = elementRegistry.getGraphics(lane);. This does seem to work, but the result is just an empty object {"0":{}}, so I can't check its properties.

@bpmn-io-tasks bpmn-io-tasks bot added the in progress Currently worked on label Feb 14, 2024
@bpmn-io-tasks bpmn-io-tasks bot removed the backlog Queued in backlog label Feb 14, 2024
@barmac
Copy link
Member Author

barmac commented Feb 14, 2024

Feel free to use this branch as base of your contribution: https://github.com/bpmn-io/bpmn-js/tree/2093-hitboxes

@barmac barmac added backlog Queued in backlog and removed in progress Currently worked on labels Feb 14, 2024
@barmac barmac removed their assignment Feb 14, 2024
@bpmn-io-tasks bpmn-io-tasks bot removed the backlog Queued in backlog label Feb 16, 2024
barmac pushed a commit that referenced this issue Feb 16, 2024
@barmac
Copy link
Member Author

barmac commented Feb 19, 2024

Closed via #2105

@barmac barmac closed this as completed Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers modeling spring cleaning Could be cleaned up one day
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants