3

I am using react-modal. It works fine and ends up centered vertically and horizontally referenced to the window.

I have menus top and left and the rest is a workspace / canvas. I would like the modal to center (both x & y direction) using this area as reference.

Can this be done easily?

I have tried to change it like this

Modal.setAppElement('#canvas');

still centering to window.

Brainmaniac
  • 2,203
  • 4
  • 29
  • 53

0 Answers0