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

Fix positioning of color picker #42

Merged
merged 2 commits into from
Apr 25, 2024
Merged

Fix positioning of color picker #42

merged 2 commits into from
Apr 25, 2024

Conversation

vesper8
Copy link
Contributor

@vesper8 vesper8 commented Apr 16, 2024

This fixes the positioning of the color picker so that it is still positioned correctly when the bpmn-js diagram is not in the top left. This also works when there are multiple bpmn-js diagrams on the same page, which is my personal use-case. Previously if you had multiple diagrams, the color picker popup would appear in the top left one no matter where the pad entry was clicked.

Closes #40

This fixes the positioning of the color picker so that it is still positioned correctly when the bpmn-js diagram is not in the top left. This also works when there are multiple bpmn-js diagrams on the same page, which is my personal use-case. Previously if you had multiple diagrams, the color picker popup would appear in the top left one no matter where the pad entry was clicked.
@CLAassistant
Copy link

CLAassistant commented Apr 16, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@nikku nikku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll have a look tomorrow if this mirrors our improved replace menu positioning, which it should, more or less.

@nikku
Copy link
Member

nikku commented Apr 18, 2024

Thanks for your contribution already @vesper8

@nikku
Copy link
Member

nikku commented Apr 22, 2024

Was there a reason you removed the bottom positioning? I'd rather keep it (pushed a commit on top) to be in sync with the core popup menu behavior:

capture A1GZO3_optimized

@nikku
Copy link
Member

nikku commented Apr 25, 2024

No feedback; I believe changeing the position was an oversight. Will merge with my fixes applied.

@nikku nikku merged commit 199e84c into bpmn-io:main Apr 25, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

color picker popup positioning only works when diagram is full screen or in the top left corner
3 participants