[TIMOB-12037] Ensure size and position flags are cleared on layout
Merge pull request #3652 from vishalduggal/timob-12037

[TIMOB-12037] Ensure size and position flags are cleared on layout