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
24.32k stars 1.58k forks source link

"center" in PanelPosition is not completely centered #4431

Open stonexer opened 2 months ago

stonexer commented 2 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 2 weeks ago

interesting! we need to check it.