-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[kbn-grid-layout
] Make drag preview absolute positioned
#208247
[kbn-grid-layout
] Make drag preview absolute positioned
#208247
Conversation
💚 Build Succeeded
Metrics [docs]Async chunks
cc @Heenawter |
Pinging @elastic/kibana-presentation (Team:Presentation) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change LGTM! Merging should be dependent on whether or not we can verify locally that this fixes the problem.
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/12958112584 |
…8247) ## Summary This PR positions the drag preview via `absolute` positioning. This is a potential fix for `EuiResizeObservers` being fired unnecessarily. ### Checklist - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit 1ff451a)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…oned (#208247) (#208278) # Backport This will backport the following commits from `main` to `8.x`: - [[`kbn-grid-layout`] Make drag preview absolute positioned (#208247)](#208247) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Hannah Mudge","email":"Heenawter@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-01-24T21:42:54Z","message":"[`kbn-grid-layout`] Make drag preview absolute positioned (#208247)\n\n## Summary\r\n\r\nThis PR positions the drag preview via `absolute` positioning. This is a\r\npotential fix for `EuiResizeObservers` being fired unnecessarily.\r\n\r\n\r\n### Checklist\r\n\r\n- [x] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_note:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"1ff451a377fd5cde5a5d7f2e2b059d9238c43fd0","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Presentation","loe:small","impact:critical","v9.0.0","backport:prev-minor","Project:Collapsable Panels"],"title":"[`kbn-grid-layout`] Make drag preview absolute positioned","number":208247,"url":"https://github.com/elastic/kibana/pull/208247","mergeCommit":{"message":"[`kbn-grid-layout`] Make drag preview absolute positioned (#208247)\n\n## Summary\r\n\r\nThis PR positions the drag preview via `absolute` positioning. This is a\r\npotential fix for `EuiResizeObservers` being fired unnecessarily.\r\n\r\n\r\n### Checklist\r\n\r\n- [x] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_note:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"1ff451a377fd5cde5a5d7f2e2b059d9238c43fd0"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/208247","number":208247,"mergeCommit":{"message":"[`kbn-grid-layout`] Make drag preview absolute positioned (#208247)\n\n## Summary\r\n\r\nThis PR positions the drag preview via `absolute` positioning. This is a\r\npotential fix for `EuiResizeObservers` being fired unnecessarily.\r\n\r\n\r\n### Checklist\r\n\r\n- [x] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_note:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"1ff451a377fd5cde5a5d7f2e2b059d9238c43fd0"}}]}] BACKPORT--> Co-authored-by: Hannah Mudge <Heenawter@users.noreply.github.com>
@Heenawter unfortunately, this caused another bug - when resizing an element that occupies the whole space, the drag preview is not considered in space and the content after that goes up. I will create an issue about it. |
…8247) ## Summary This PR positions the drag preview via `absolute` positioning. This is a potential fix for `EuiResizeObservers` being fired unnecessarily. ### Checklist - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
Summary
This PR positions the drag preview via
absolute
positioning. This is a potential fix forEuiResizeObservers
being fired unnecessarily.Checklist
release_note:*
label is applied per the guidelines