How to use the @bentley/ui-ninezone.StagePanelTypeHelpers.isVertical function in @bentley/ui-ninezone

To help you get started, we’ve selected a few @bentley/ui-ninezone examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github imodeljs / imodeljs / ui / framework / src / ui-framework / stagepanels / FrameworkStagePanel.tsx View on Github external
return null;
      return (
        
          {(safeAreaInsets) => (
            
          )}
        
      );
    }

    const isSplitterTargetVisible = isTargetVisible && !this.props.isTargeted;
    const isVertical = StagePanelTypeHelpers.isVertical(type);
    return (
      
        {(safeAreaInsets) => {
          if (this.props.isInFooterMode)
            safeAreaInsets &= ~SafeAreaInsets.Bottom;
          return (
github imodeljs / imodeljs / ui / framework / src / ui-framework / stagepanels / FrameworkStagePanel.tsx View on Github external
private initializeSize() {
    if (this.props.panel.size !== undefined || !this._measurer.current)
      return;

    const location = this.props.location;
    if (this.props.initialSize) {
      this.props.changeHandler.handlePanelInitialize(location, this.props.initialSize);
      return;
    }
    const clientRect = this._measurer.current.getBoundingClientRect();
    const type = getStagePanelType(location);
    const size = StagePanelTypeHelpers.isVertical(type) ? clientRect.width : clientRect.height;
    this.props.changeHandler.handlePanelInitialize(location, size);
  }
}