Fix #9604 Add scrollbars to the preferences window