mac center on resize fix