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

[v10.1.x] Rendering: Fix dashboard screenshot #73361

Merged
merged 1 commit into from Aug 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion public/app/features/dashboard/dashgrid/DashboardGrid.tsx
Expand Up @@ -6,6 +6,7 @@ import { Subscription } from 'rxjs';

import { config } from '@grafana/runtime';
import { GRID_CELL_HEIGHT, GRID_CELL_VMARGIN, GRID_COLUMN_COUNT } from 'app/core/constants';
import { contextSrv } from 'app/core/services/context_srv';
import { DashboardPanelsChangedEvent } from 'app/types/events';

import { AddLibraryPanelWidget } from '../components/AddLibraryPanelWidget';
Expand Down Expand Up @@ -207,7 +208,7 @@ export class DashboardGrid extends PureComponent<Props> {
* This can be quite distracting and make the dashboard appear to less snappy.
*/
onGetWrapperDivRef = (ref: HTMLDivElement | null) => {
if (ref) {
if (ref && contextSrv.user.authenticatedBy !== 'render') {
setTimeout(() => {
ref.classList.add('react-grid-layout--enable-move-animations');
}, 50);
Expand Down