Make the application fit to the containing window better.