Prevent trying to set the 'maxHeight' property of the secondaryToolbar before the viewer is completely loaded
This commit is contained in:
parent
4f243b39b4
commit
fabed80b5f
1 changed files with 3 additions and 0 deletions
|
@ -96,6 +96,9 @@ var SecondaryToolbar = {
|
||||||
|
|
||||||
// Misc. functions for interacting with the toolbar.
|
// Misc. functions for interacting with the toolbar.
|
||||||
setMaxHeight: function secondaryToolbarSetMaxHeight(container) {
|
setMaxHeight: function secondaryToolbarSetMaxHeight(container) {
|
||||||
|
if (!container) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.newContainerHeight = container.clientHeight;
|
this.newContainerHeight = container.clientHeight;
|
||||||
if (this.previousContainerHeight === this.newContainerHeight) {
|
if (this.previousContainerHeight === this.newContainerHeight) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue