-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Conversation
|
||
$scope.$watchCollection('spy.mode', function () { | ||
$scope.fullScreenSpy = shouldHaveFullSpy(); | ||
applyClassNames(); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oddly enough, yes.
LGTM then! |
$scope.fullScreenSpy = $visEl.height() < minVisChartHeight; | ||
} | ||
return ($visEl.height() < minVisChartHeight) | ||
&& _.get($scope.spy, 'mode.fill') |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
LGTM other than that one comment. |
Fix spy panel full screen with back button
Fixes #5832