Skip to content

Commit

Permalink
corrected spy fullscreen mode
Browse files Browse the repository at this point in the history
  • Loading branch information
scampi committed Oct 26, 2016
1 parent 835432e commit a092f15
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions src/ui/public/visualize/visualize.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
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 a092f15

Please sign in to comment.