sesaparcours
    Preparing search index...
    • Returns a rectangle representing reasonable position for where to place a UI element of the specified size given the restraints and locations of the scrollbars. This method does not take into account any already placed UI elements.

      Parameters

      • position: Blockly.uiPosition.Position

        The starting horizontal and vertical position.

      • size: Blockly.utils.Size

        the size of the UI element to get a start position for.

      • horizontalPadding: number

        The horizontal padding to use.

      • verticalPadding: number

        The vertical padding to use.

      • metrics: UiMetrics

        The workspace UI metrics.

      • workspace: WorkspaceSvg

        The workspace.

      Returns Blockly.utils.Rect

      The suggested start position.