Skip to content

Commit

Permalink
Merge pull request getredash#2372 from kravets-levko/fix/dancing-widgets
Browse files Browse the repository at this point in the history
Fix: dashboard "dancing" widgets (when auto-height enabled)
  • Loading branch information
arikfr committed Mar 6, 2018
2 parents 051f12c + 27c7e86 commit 88deb5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/app/directives/gridster-auto-height.js
Expand Up @@ -50,7 +50,9 @@ function gridsterAutoHeight($timeout, $parse) {
}))
.value();

const additionalHeight = 100 + _.last(controller.gridster.margins);
// Height of controls outside visualization area
const additionalHeight = $element[0].offsetHeight - element.offsetHeight
+ _.last(controller.gridster.margins);
const contentsHeight = childrenBounds.bottom - childrenBounds.top;
$timeout(() => {
const sizeY = Math.ceil((contentsHeight + additionalHeight) /
Expand Down
4 changes: 4 additions & 0 deletions client/app/pages/dashboards/dashboard.less
Expand Up @@ -106,5 +106,9 @@
.spinner {
position: static;
}

.scrollbox {
overflow-y: hidden;
}
}
}

0 comments on commit 88deb5f

Please sign in to comment.