Fray Electron
    Preparing search index...

    Function resizeSplit

    • Resizes a divider and redistributes space across aligned neighboring panes.

      Parameters

      • layout: Layout

        Current tree.

      • splitId: string

        Divider to resize.

      • firstSize: number

        Requested first-child size in CSS pixels.

      • viewportWidth: number

        Workspace width in CSS pixels.

      • viewportHeight: number

        Workspace height in CSS pixels.

      • gap: number

        Divider gap in CSS pixels.

      • adjacentOnly: boolean = false

        If true, restricts redistribution to the divider's immediate branches.

      Returns Layout

      A new validated layout with adjusted ratios.

      If the divider is missing or has no measurable space.