Make resizing work in wx2.9