Skip to content

Commit 24044a4

Browse files
committed
feat: Drop preact-shim and bump versions
Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
1 parent 29f2684 commit 24044a4

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)