mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-13 14:56:19 -04:00
Don't render if the position is 0,0
This commit is contained in:
parent
a3763648fe
commit
44d9be19b2
@ -313,6 +313,7 @@ const Panel = ({
|
|||||||
ref={panelRef}
|
ref={panelRef}
|
||||||
tabIndex={-1}
|
tabIndex={-1}
|
||||||
style={{
|
style={{
|
||||||
|
visibility: `${positionRef.current === "" ? "hidden" : "visible"}`,
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
top: `${
|
top: `${
|
||||||
panelPosition.y +
|
panelPosition.y +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user