Skip to content

Commit 28deef4

Browse files
authored
Merge pull request #1174 from lyp000119/share
fix: Incorrect height acquisition bug when taking screenshots
2 parents 2f35134 + c476851 commit 28deef4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/app/pages/DashBoardPage/pages/Board/AutoDashboard/AutoBoardCore.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const AutoBoardCore: React.FC<{ boardId: string }> = memo(
104104
}, [boardId, editing, sortedLayoutWidgets]);
105105
return (
106106
<Wrap>
107-
<StyledContainer bg={background} ref={ref}>
107+
<StyledContainer bg={background}>
108108
{sortedLayoutWidgets.length ? (
109109
<div className="grid-wrap" ref={gridWrapRef}>
110110
<ReactGridLayout
@@ -119,6 +119,7 @@ export const AutoBoardCore: React.FC<{ boardId: string }> = memo(
119119
allowOverlap={allowOverlap}
120120
measureBeforeMount={false}
121121
useCSSTransforms={true}
122+
innerRef={ref}
122123
>
123124
{boardChildren}
124125
</ReactGridLayout>

0 commit comments

Comments
 (0)