Overflow fix for dialog widget.