Make widget resizeable

This makes the widget resizeable on 4.2.2. I haven't tested other versions.

Fixes #275.