Commit 91b34340 by Torkel Ödegaard

wip: minor fixes

parent 1c978162
......@@ -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;
}
......
......@@ -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);
......
......@@ -165,7 +165,7 @@ export class DashboardGrid extends React.Component<DashboardGridProps, any> {
componentDidMount() {
setTimeout(() => {
this.setState({ animated: false });
this.setState({ animated: true });
});
}
......
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment