[fullscreen addon] Restore width and height when leaving fullscreen

Issue #1761