Move domWidth|Height out of widget logic to a dialog.