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(js): ignore app bar height when calculating default snapshot height #689

Merged
merged 1 commit into from
Jan 31, 2019

Conversation

rolandjitsu
Copy link
Contributor

No description provided.

width: number;
height: number;
} {
const [width, height] = [
window.innerWidth,
window.innerHeight
window.innerHeight - (isWidthDown('xs', currentWidth) ? 64 : 56)
Copy link
Contributor

Choose a reason for hiding this comment

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

magic number looks wrong. why not using the current viewport of Brayns?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I made some consts now. We cannot use the viewport from Brayns because other clients could change that and the snapshot default size should be the size of the browser's viewport that the snapshot is taken in.

@rolandjitsu rolandjitsu merged commit 0a43e3c into BlueBrain:master Jan 31, 2019
@tribal-tec tribal-tec added the bug label Feb 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants