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

SceneGridLayout: Change to useMeasure and non absolute div wrapper #872

Merged
merged 5 commits into from
Aug 15, 2024

Conversation

torkelo
Copy link
Member

@torkelo torkelo commented Aug 14, 2024

In order to make the sticky controls work we cannot have an absolute wrapper around the grid (as this makes the div there the sticky lives not get the needed hight for sticky to work).

But in changing this to useMeasure and same CSS as in
https://github.com/grafana/grafana/blob/main/public/app/features/dashboard/dashgrid/DashboardGrid.tsx#L327

but I am running into the same problem I have always had in that when the wrapping div is not absolute I cannot reduce the size, the resize observer is not register any change to reduced viewport as the inner grid div current width is blocking a reduction in size.

Have no idea why it works in DashboardGrid.tsx#L327

Copy link
Contributor

@ashharrison90 ashharrison90 left a comment

Choose a reason for hiding this comment

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

lgtm 👍

@torkelo torkelo added release Create a release when this pr is merged minor Increment the minor version when merged labels Aug 15, 2024
@torkelo torkelo merged commit 36da645 into main Aug 15, 2024
3 checks passed
@torkelo torkelo deleted the fix-grid-sticky branch August 15, 2024 12:50
@grafanabot
Copy link
Contributor

🚀 PR was released in v5.8.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Increment the minor version when merged release Create a release when this pr is merged released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants