NXP-11142: fix widget types behaviour when rendering the layout in another mode than 'view' (kudos to layout-demo tests)