Merge pull request #3692 from Snuffleupagus/issue-3690

Prevent trying to set the 'maxHeight' property of the secondaryToolbar before the viewer is completely loaded
This commit is contained in:
Tim van der Meij 2013-09-20 10:43:15 -07:00
commit bf1b945101

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;