1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Prevent trying to set the 'maxHeight' property of the secondaryToolbar before the viewer is completely loaded

This commit is contained in:
Jonas Jenwald 2013-09-14 17:56:18 +02:00
parent 4f243b39b4
commit fabed80b5f

View file

@ -96,6 +96,9 @@ var SecondaryToolbar = {
// Misc. functions for interacting with the toolbar.
setMaxHeight: function secondaryToolbarSetMaxHeight(container) {
if (!container) {
return;
}
this.newContainerHeight = container.clientHeight;
if (this.previousContainerHeight === this.newContainerHeight) {
return;