Fixes a bug where destroying the plugin would fail.
Fixes a bug where resizing the browser doesn't update the panel snap.