Fix lenght check. Reflow before setting transition