react-native-modalbox icon indicating copy to clipboard operation
react-native-modalbox copied to clipboard

set center relative to window height instead of relative to document height

Open roysG opened this issue 6 years ago • 2 comments

I am using this plugin with react native web. I have issue when i have long page, the center position box is relative to document height. It cause a bug cause when the user should see the popup he stay on the bottom of the page. How can i set the popup to be relative to window height?

roysG avatar Mar 20 '18 16:03 roysG

i have the same question , you can set position top , set marginTop 200

BigWolf286 avatar Jul 02 '18 08:07 BigWolf286

I have the same issue with long scroll view. So, i just check current screen offset then calculate marginTop and pass it in props to a Modal. It is not the best solution, but i dont see any other rigth now. If someone has better idea, please post it here =)

uvrik avatar Dec 24 '20 15:12 uvrik