mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
corrected spy fullscreen mode
This commit is contained in:
parent
835432e6e2
commit
a092f15175
2 changed files with 9 additions and 2 deletions
|
@ -76,13 +76,20 @@ uiModules
|
|||
|
||||
let applyClassNames = function () {
|
||||
let $visEl = getVisContainer();
|
||||
const $spyEl = getter('.visualize-spy-container')();
|
||||
let fullSpy = ($scope.spy.mode && ($scope.spy.mode.fill || $scope.fullScreenSpy));
|
||||
|
||||
$visEl.toggleClass('spy-only', Boolean(fullSpy));
|
||||
if ($spyEl) {
|
||||
$spyEl.toggleClass('only', Boolean(fullSpy));
|
||||
}
|
||||
|
||||
$timeout(function () {
|
||||
if (shouldHaveFullSpy()) {
|
||||
$visEl.addClass('spy-only');
|
||||
if ($spyEl) {
|
||||
$spyEl.addClass('only');
|
||||
}
|
||||
};
|
||||
}, 0);
|
||||
};
|
||||
|
|
|
@ -95,8 +95,8 @@ visualize-spy {
|
|||
margin-right: 5px;
|
||||
}
|
||||
|
||||
&.only {
|
||||
.visualize-spy-container {
|
||||
.visualize-spy-container {
|
||||
&.only {
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue