You've already forked react-custom-popup
Layout the popup after initial render.
This commit is contained in:
@@ -40,7 +40,6 @@ class App extends React.Component {
|
||||
this.setState({popupVisible: false});
|
||||
}
|
||||
onPopupLayout (currentLayout) {
|
||||
|
||||
return [
|
||||
(window.innerWidth - CUSTOM_DIMENSION) / 2,
|
||||
(window.innerHeight - CUSTOM_DIMENSION) / 2,
|
||||
|
||||
Reference in New Issue
Block a user