Improved dialog resizing.

Dialog header is now always shown.