Skip to content

Option to disable centering #47

@reminjp

Description

@reminjp

I am so grateful for this package.
Now I want to set features.left and features.top myself.
How about skipping centering if left and top is set?

} else if (center === 'parent') {
features.left =
window.top.outerWidth / 2 + window.top.screenX - features.width / 2
features.top =
window.top.outerHeight / 2 + window.top.screenY - features.height / 2

or adding new option to center prop?

center: PropTypes.oneOf(['parent', 'screen']),

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions