Fix invalidateSize on animation