Skip to content

Commit ac7d807

Browse files
authored
Merge pull request #4318 from GordonSmith/V3TWEAKS_ECLWATCH
feat: Drop preact-shim and bump versions
2 parents 29f2684 + 24044a4 commit ac7d807

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react/src/text.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,14 @@ export const LabelledRect: FunctionComponent<LabelledRect> = ({
183183

184184
return <>
185185
<Rectangle
186-
width={actualWidth}
187-
height={actualHeight}
186+
width={width}
187+
height={height}
188188
fill={fill}
189189
stroke={stroke}
190190
strokeWidth={strokeWidth}
191191
cornerRadius={cornerRadius}
192192
/>
193-
<g transform={`translate(${-(actualWidth / 2) + padding} ${-(actualHeight / 2) + padding + fontSize * 0.15})`}>
193+
<g transform={`translate(${-(width / 2) + padding} ${-(height / 2) + padding})`}>
194194
<TextLine
195195
text={text}
196196
fontFamily={fontFamily}

0 commit comments

Comments
 (0)