Fixed the PlatformMacOSX resize issue.