Example #1
0
    private void endCurrentLine(bool removeEmpty)
    {
        if (currentLine == null)
        {
            return;
        }

        if (currentLinePos == 0)
        {
            if (removeEmpty)
            {
                children.Remove(currentLine);
            }
        }
        else
        {
            currentLine.doHorizontalAlignment();
            currentLine.doVerticalAlignment();
        }

        currentLine    = null;
        currentLinePos = 0;
    }