fix resizing widgets without predefined size