NXP-12456: preserve LayoutElement behaviour
NXP-12456: comment and cleanup