Browse Source

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

Jonas Jenwald 12 years ago
parent
commit
fabed80b5f
  1. 3
      web/secondary_toolbar.js

3
web/secondary_toolbar.js

@ -96,6 +96,9 @@ var SecondaryToolbar = { @@ -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;

Loading…
Cancel
Save