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: resize preload in document viewer #850

Merged
merged 3 commits into from
Oct 16, 2018

Conversation

DanDeMicco
Copy link
Contributor

No description provided.

@boxcla
Copy link

boxcla commented Oct 9, 2018

Verified that @DanDeMicco has signed the CLA. Thanks for the pull request!

}

const { pdfWidth, pdfHeight } = this.pdfData;
const { scaledWidth, scaledHeight } = this.getScaledDimensions(pdfWidth, pdfHeight);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you move the above two lines to a util function? It's duplicated inside of the loadHandler() promise resolution callback

Copy link
Contributor

@jeremypress jeremypress left a comment

Choose a reason for hiding this comment

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

LGTM

@DanDeMicco DanDeMicco merged commit d29afa6 into box:master Oct 16, 2018
@DanDeMicco DanDeMicco deleted the instant-preview-sizing branch October 16, 2018 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants