fix: forceLayout not updating center of gravity correctly on window resize