wip: minor fixes

This commit is contained in:
Torkel Ödegaard
2018-08-25 07:21:00 -07:00
parent 1c97816275
commit 91b343403c
4 changed files with 8 additions and 4 deletions

View File

@@ -19,6 +19,7 @@ export function geminiScrollbar() {
let scrollRoot = elem.parent();
let scroller = elem;
console.log('scroll');
if (attrs.grafanaScrollbar && attrs.grafanaScrollbar === 'scrollonroot') {
scrollRoot = scroller;
}

View File

@@ -5,9 +5,7 @@ coreModule.directive('dashClass', function($timeout) {
return {
link: function($scope, elem) {
$scope.ctrl.dashboard.events.on('view-mode-changed', function(panel) {
$timeout(() => {
elem.toggleClass('panel-in-fullscreen', panel.fullscreen === true);
}, 10);
elem.toggleClass('panel-in-fullscreen', panel.fullscreen === true);
});
elem.toggleClass('panel-in-fullscreen', $scope.ctrl.dashboard.meta.fullscreen === true);

View File

@@ -165,7 +165,7 @@ export class DashboardGrid extends React.Component<DashboardGridProps, any> {
componentDidMount() {
setTimeout(() => {
this.setState({ animated: false });
this.setState({ animated: true });
});
}

View File

@@ -31,6 +31,11 @@
.react-resizable-handle {
display: none;
}
// the react-grid has a height transition
.react-grid-layout {
transition-property: none;
}
}
@include media-breakpoint-down(sm) {