Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spy panel full screen with back button #5854

Merged
merged 1 commit into from
Jan 11, 2016

Conversation

rashidkpc
Copy link
Contributor

Fixes #5832


$scope.$watchCollection('spy.mode', function () {
$scope.fullScreenSpy = shouldHaveFullSpy();
applyClassNames();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need this one, and the one on :109?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oddly enough, yes.

@panda01
Copy link
Contributor

panda01 commented Jan 11, 2016

LGTM then!

@panda01 panda01 assigned rashidkpc and unassigned panda01 Jan 11, 2016
$scope.fullScreenSpy = $visEl.height() < minVisChartHeight;
}
return ($visEl.height() < minVisChartHeight)
&& _.get($scope.spy, 'mode.fill')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these be has instead of get? As it stands now, if either mode.fill or mode.name are not truthy (e.g. 0), this will fail. That may be the intended behavior, but I wanted to make sure.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_.get is correct, we need to know if both are truthy

@epixa
Copy link
Contributor

epixa commented Jan 11, 2016

LGTM other than that one comment.

rashidkpc added a commit that referenced this pull request Jan 11, 2016
Fix spy panel full screen with back button
@rashidkpc rashidkpc merged commit 91d7624 into elastic:master Jan 11, 2016
rashidkpc pushed a commit to rashidkpc/kibana that referenced this pull request Jan 11, 2016
rashidkpc pushed a commit to rashidkpc/kibana that referenced this pull request Jan 11, 2016
rashidkpc pushed a commit to rashidkpc/kibana that referenced this pull request Jan 11, 2016
@epixa
Copy link
Contributor

epixa commented Jan 11, 2016

Backported in:
4.4.0 57ca6dc
4.4 1f71253
4.x 43e777b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants