Issue #2315067 by Sam152: Fixed Dialog titlebar overlaps close button for long titles.