code: function secondaryToolbarSetMaxHeight(container) {
      if (!container || !this.buttonContainer) {
        return;
      }
      this.newContainerHeight = container.clientHeight;
      if (this.previousContainerHeight === this.newContainerHeight) {
        return;
      }
      this.buttonContainer.setAttribute('style',
        'max-height: ' + (this.newContainerHeight - SCROLLBAR_PADDING) + 'px;');
      this.previousContainerHeight = this.newContainerHeight;
    }
docs: Misc. functions for interacting with the toolbar.