diff --git a/src/lib/compositeLayout.ts b/src/lib/compositeLayout.ts index 839a7e0..abb6b0f 100644 --- a/src/lib/compositeLayout.ts +++ b/src/lib/compositeLayout.ts @@ -408,8 +408,8 @@ function centerRectInBounds(params: { bounds: RenderRect; size: Size; maxSize: S if ( maxWidth >= boundsWidth && maxHeight >= boundsHeight && - Math.abs(boundsWidth - resolvedWidth) <= 1 && - Math.abs(boundsHeight - resolvedHeight) <= 1 + Math.abs(boundsWidth - resolvedWidth) <= 4 && + Math.abs(boundsHeight - resolvedHeight) <= 4 ) { return { x: boundsX,