Save size of settings dialog

Fixes #541