We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29f2684 commit 24044a4Copy full SHA for 24044a4
packages/react/src/text.tsx
@@ -183,14 +183,14 @@ export const LabelledRect: FunctionComponent<LabelledRect> = ({
183
184
return <>
185
<Rectangle
186
- width={actualWidth}
187
- height={actualHeight}
+ width={width}
+ height={height}
188
fill={fill}
189
stroke={stroke}
190
strokeWidth={strokeWidth}
191
cornerRadius={cornerRadius}
192
/>
193
- <g transform={`translate(${-(actualWidth / 2) + padding} ${-(actualHeight / 2) + padding + fontSize * 0.15})`}>
+ <g transform={`translate(${-(width / 2) + padding} ${-(height / 2) + padding})`}>
194
<TextLine
195
text={text}
196
fontFamily={fontFamily}
0 commit comments