Setting alignment on non-fixed component.

Size of a component is calculated based on requested size and actual size if it is not fixed.

Close #999.
Is this +1 part for inaccuracies?  Please list why +1 is used