Has been added a logic for layouts.
Has been added a logic for layouts.