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

Ensure hidden bounds calculation works in all browser #324

Merged
merged 1 commit into from Mar 10, 2024
Merged

Conversation

martin-fleck-at
Copy link
Contributor

What it does

  • Do not use 'display: none' for hidden getBBox() calculation

  • Only re-calculate the bounds for certain elements -- Extend LocalRequestBoundsAction with element IDs -- Restrict calculation to given set of elements if IDs are present

  • Minor: Fix re-export for decorationModule

Fixes eclipse-glsp/glsp#1258

How to test

  • Resize elements or create new elements in the workflow example using the ghost elements (default).
  • Check that we have the same visual feedback in both Chrome, Firefox or any other browser you are using

Follow-ups

Changelog

  • This PR should be mentioned in the changelog
  • This PR introduces a breaking change (if yes, provide more details below for the changelog and the migration guide)

- Do not use 'display: none' for hidden getBBox() calculation

- Only re-calculate the bounds for certain elements
-- Extend LocalRequestBoundsAction with element IDs
-- Restrict calculation to given set of elements if IDs are present

- Minor: Fix re-export for decorationModule

Fixes eclipse-glsp/glsp#1258
Copy link
Contributor

@tortmayr tortmayr left a comment

Choose a reason for hiding this comment

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

Looks good to me and everything now seems to work as expected in Chrome and Firefox.

packages/client/css/glsp-sprotty.css Show resolved Hide resolved
@tortmayr tortmayr merged commit 645e72f into master Mar 10, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ghost element feedback does not properly work in Firefox
2 participants