Fixed right side scrollbar margin on dashboard page

This commit is contained in:
Torkel Ödegaard
2019-02-28 07:57:59 -08:00
parent 1478f38dd9
commit 84b2c0447e
3 changed files with 10 additions and 3 deletions

View File

@@ -268,7 +268,12 @@ export class DashboardPage extends PureComponent<Props, State> {
onAddPanel={this.onAddPanel}
/>
<div className="scroll-canvas scroll-canvas--dashboard">
<CustomScrollbar autoHeightMin={'100%'} setScrollTop={this.setScrollTop} scrollTop={scrollTop}>
<CustomScrollbar
autoHeightMin={'100%'}
setScrollTop={this.setScrollTop}
scrollTop={scrollTop}
className="custom-scrollbar--page"
>
{editview && <DashboardSettings dashboard={dashboard} />}
{initError && this.renderInitFailedState()}

View File

@@ -109,6 +109,7 @@ exports[`DashboardPage Dashboard init completed Should render dashboard grid 1`
autoHide={false}
autoHideDuration={200}
autoHideTimeout={200}
className="custom-scrollbar--page"
hideTracksWhenNotNeeded={false}
scrollTop={0}
setScrollTop={[Function]}
@@ -344,6 +345,7 @@ exports[`DashboardPage When dashboard has editview url state should render setti
autoHide={false}
autoHideDuration={200}
autoHideTimeout={200}
className="custom-scrollbar--page"
hideTracksWhenNotNeeded={false}
scrollTop={0}
setScrollTop={[Function]}