浏览代码

revert bounds change

Konstantinos Kaloutas 2 年之前
父节点
当前提交
97defb37f6
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tldraw/apps/tldraw-logseq/src/lib/shapes/GroupShape.tsx

+ 2 - 2
tldraw/apps/tldraw-logseq/src/lib/shapes/GroupShape.tsx

@@ -34,8 +34,8 @@ export class GroupShape extends TLGroupShape<GroupShapeProps> {
           className={'tl-hitarea-fill'}
           x={strokeWidth / 2}
           y={strokeWidth / 2}
-          width={Math.max(0.01, bounds?.width - strokeWidth)}
-          height={Math.max(0.01, bounds?.height - strokeWidth)}
+          width={Math.max(0.01, bounds.width - strokeWidth)}
+          height={Math.max(0.01, bounds.height - strokeWidth)}
           pointerEvents="all"
         />
         {childSelected && (