Fix _resize method of the ToolBar widget. Close #281