xyflow / xyflow

React Flow | Svelte Flow - Powerful open source libraries for building node-based UIs with React (https://reactflow.dev) or Svelte (https://svelteflow.dev). Ready out-of-the-box and infinitely customizable.
https://xyflow.com
MIT License
26.16k stars 1.68k forks source link

"center" in PanelPosition is not completely centered #4431

Open stonexer opened 4 months ago

stonexer commented 4 months ago

What platform were you using when you found the bug?

Live code example

No response

Describe the Bug

Due to the margin, the panel is not completely centered.

Steps to reproduce the bug or issue

completely centered

see the demo

Expected behavior

The panel is completely centered.

Screenshots or Videos

image

Additional context

No response

moklick commented 3 months ago

interesting! we need to check it.