Added refresh event for resize on OS X.