removed the resizing from _LayoutMixin. calling resize to inform about being shown is enough
fixed collectAttributes