dialogs: adjust width to include dialog margin, border and padding for size=auto; this avoids horizontal scrollbars, re #4404, re #4515

git-svn-id: svn://develop.studip.de/studip/trunk@32124 c5b85792-5220-0410-ad23-ed5b6b8ad999