[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'LDockTree' (#lcl)

# TCustomAnchoredDockManager.CombineSpiralSplitterPair

CombineSpiralSplitterPair - cleans up alignment of two adjacent splitters when they don't line up properly

## Declaration

Source position: ldocktree.pas line 229

`protected procedure TCustomAnchoredDockManager.CombineSpiralSplitterPair(`
`Splitter1: TLazDockSplitter;`
`Splitter2: TLazDockSplitter`
`);`

## Description

CombineSpiralSplitterPair - cleans up alignment of two adjacent splitters when they don't line up properly

    {  - Anchor all controls anchored to Splitter2 to Splitter1
       - extend Splitter1
       - delete Splitter2

       Example:

       Four spiral splitters:

         Before:
                  |
               A  |
         ---------|
           | +--+ |  C
         B | |  | |
           | +--+ |
           | ----------
           |   D

         The left and right splitter will be combined to one.

         After:
                  |
               A  |
           -------|
                  |  C
                B |
                  |
                  |------
                  |   D
      }

The latest version of this document can be found at lazarus-ccr.sourceforge.net .