Use BestSize() instead of forcing size of a pane. Also removed deprecated classes.