_Widget.resize is deprecated and would cause an exception if ever used.