diff --git a/plugins/svg/src/SvgFeatureRenderer/components/SvgFeatureRendering.tsx b/plugins/svg/src/SvgFeatureRenderer/components/SvgFeatureRendering.tsx index 93785736d8..66ab35ed26 100644 --- a/plugins/svg/src/SvgFeatureRenderer/components/SvgFeatureRendering.tsx +++ b/plugins/svg/src/SvgFeatureRenderer/components/SvgFeatureRendering.tsx @@ -241,10 +241,11 @@ const SvgFeatureRendering = observer(function SvgFeatureRendering(props: { const [region] = regions const width = (region.end - region.start) / bpPerPx const displayMode = readConfObject(config, 'displayMode') as string + const maxConfHeight = readConfObject(config, 'maxHeight') as number const ref = useRef(null) const [mouseIsDown, setMouseIsDown] = useState(false) - const [height, setHeight] = useState(0) + const [height, setHeight] = useState(maxConfHeight) const [movedDuringLastMouseDown, setMovedDuringLastMouseDown] = useState(false)