From bbb1f72963065b44b51b4f87d8dec51b1bbbb77a Mon Sep 17 00:00:00 2001 From: Andrej Ocenas Date: Fri, 13 Nov 2020 14:26:29 +0100 Subject: [PATCH] LogsPanel: Fix scrolling in dashboards (#28974) --- packages/grafana-ui/src/components/Logs/LogRows.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grafana-ui/src/components/Logs/LogRows.tsx b/packages/grafana-ui/src/components/Logs/LogRows.tsx index 29cd85b6dbf..0ef9916b6c6 100644 --- a/packages/grafana-ui/src/components/Logs/LogRows.tsx +++ b/packages/grafana-ui/src/components/Logs/LogRows.tsx @@ -117,7 +117,7 @@ class UnThemedLogRows extends PureComponent { // For horizontal scrolling we can't use CustomScrollbar as it causes the problem with logs context - it is not visible // for top log rows. Therefore we use CustomScrollbar only in LogsPanel and for Explore, we use custom css styling. - const horizontalScrollWindow = wrapLogMessage && !disableCustomHorizontalScroll ? '' : logsRowsHorizontalScroll; + const horizontalScrollWindow = wrapLogMessage || disableCustomHorizontalScroll ? '' : logsRowsHorizontalScroll; // Staged rendering const processedRows = dedupedRows ? dedupedRows : [];