fix: Add measurment (px) to EdgeText width and height

This commit is contained in:
Braks
2021-08-17 19:47:05 +02:00
parent 9d8b49eeb1
commit 3f6d49914f
+2 -2
View File
@@ -60,10 +60,10 @@ export default defineComponent({
>
{props.labelShowBg && (
<rect
width={edgeTextBox.value.width + 2 * props.labelBgPadding[0]}
width={edgeTextBox.value.width + 2 * props.labelBgPadding[0] + 'px'}
height={edgeTextBox.value.height + 2 * props.labelBgPadding[1] + 'px'}
x={-props.labelBgPadding[0]}
y={-props.labelBgPadding[1]}
height={edgeTextBox.value.height + 2 * props.labelBgPadding[1]}
class="revue-flow__edge-textbg"
style={props.labelBgStyle}
rx={props.labelBgBorderRadius}