Wrote the resizing handler, and some tests, which pass.