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.
I'm unsure about the purpose of this test's existence.  I think we should move this idea to componentTests.ts