mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
parent
7fa21bf39d
commit
91b8340a7d
2 changed files with 8 additions and 1 deletions
|
@ -181,6 +181,13 @@ describe('visualize spy panel', function () {
|
|||
expect($el.panel.hasClass('only')).to.equal(true);
|
||||
expect(visElement.hasClass('spy-only')).to.equal(true);
|
||||
});
|
||||
|
||||
it('should not trigger forced maximized mode, when spy is not shown', () => {
|
||||
visElement.height(50);
|
||||
compile();
|
||||
$timeout.flush();
|
||||
expect(visElement.hasClass('spy-only')).to.equal(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe('spy modes', () => {
|
||||
|
|
|
@ -37,7 +37,7 @@ uiModules
|
|||
|
||||
function checkForcedMaximized() {
|
||||
$timeout(() => {
|
||||
if ($scope.visElement && $scope.visElement.height() < 180) {
|
||||
if ($scope.visElement && $scope.currentMode && $scope.visElement.height() < 180) {
|
||||
$scope.forceMaximized = true;
|
||||
} else {
|
||||
$scope.forceMaximized = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue