Fixed an issue where main window would always grow on Yosemite.