rmariuzzo / react-new-window

🔲 Pop new windows in React, using `window.open`.

Home Page:https://rmariuzzo.github.io/react-new-window/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

center prop doesn't work, window always located in top left of screen

austintackaberry opened this issue · comments

Regardless of whether I set it to parent or screen, it is always in the top left of my screen.

Ubuntu 22.04
Chrome Version 108.0.5359.71 (Official Build) (64-bit)
React 18.2
react-new-window 1.0.1

Checked the code, realized I needed to add features prop with width and height fields and it worked!