mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix the issue with cutoff CustomScrollbar (#75929)
* Remove autoHeightMin * Fix scroll to the top
This commit is contained in:
@@ -509,14 +509,13 @@ export class Explore extends React.PureComponent<Props, ExploreState> {
|
||||
|
||||
return (
|
||||
<>
|
||||
<ExploreToolbar exploreId={exploreId} onChangeTime={this.onChangeTime} topOfViewRef={this.topOfViewRef} />
|
||||
<ExploreToolbar exploreId={exploreId} onChangeTime={this.onChangeTime} />
|
||||
<CustomScrollbar
|
||||
testId={selectors.pages.Explore.General.scrollView}
|
||||
autoHeightMin={'100%'}
|
||||
scrollRefCallback={(scrollElement) => (this.scrollElement = scrollElement || undefined)}
|
||||
>
|
||||
{datasourceInstance ? (
|
||||
<div className={styles.exploreContainer}>
|
||||
<div className={styles.exploreContainer} ref={this.topOfViewRef}>
|
||||
<PanelContainer className={styles.queryContainer}>
|
||||
{correlationsBox}
|
||||
<QueryRows exploreId={exploreId} />
|
||||
|
||||
@@ -54,7 +54,7 @@ const getStyles = (theme: GrafanaTheme2) => ({
|
||||
interface Props {
|
||||
exploreId: string;
|
||||
onChangeTime: (range: RawTimeRange, changedByScanner?: boolean) => void;
|
||||
topOfViewRef: RefObject<HTMLDivElement>;
|
||||
topOfViewRef?: RefObject<HTMLDivElement>;
|
||||
}
|
||||
|
||||
export function ExploreToolbar({ exploreId, topOfViewRef, onChangeTime }: Props) {
|
||||
|
||||
Reference in New Issue
Block a user