Fixed alignment for resized ouline items (fonts became clipped)
Some code rearrangements