Skip to content

Commit

Permalink
Merge pull request #8844 from scampi/spy-fullscreen
Browse files Browse the repository at this point in the history
corrected spy fullscreen mode
  • Loading branch information
thomasneirynck authored Oct 28, 2016
2 parents 35fc5f4 + 0403470 commit 8f1d6e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/ui/public/visualize/visualize.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ uiModules

let getVisEl = getter('.visualize-chart');
let getVisContainer = getter('.vis-container');
let getSpyContainer = getter('.visualize-spy-container');

// Show no results message when isZeroHits is true and it requires search
$scope.showNoResultsMessage = function () {
Expand All @@ -76,13 +77,16 @@ uiModules

let applyClassNames = function () {
let $visEl = getVisContainer();
const $spyEl = getSpyContainer();
let fullSpy = ($scope.spy.mode && ($scope.spy.mode.fill || $scope.fullScreenSpy));

$visEl.toggleClass('spy-only', Boolean(fullSpy));
$spyEl.toggleClass('only', Boolean(fullSpy));

$timeout(function () {
if (shouldHaveFullSpy()) {
$visEl.addClass('spy-only');
$spyEl.addClass('only');
};
}, 0);
};
Expand Down
4 changes: 2 additions & 2 deletions src/ui/public/visualize/visualize.less
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ visualize-spy {
margin-right: 5px;
}

&.only {
.visualize-spy-container {
.visualize-spy-container {
&.only {
height: auto;
}
}
Expand Down

0 comments on commit 8f1d6e7

Please sign in to comment.