Fixing widgets layout after we allowed the widgets dialog to grow very big

[skip ci]