reactour icon indicating copy to clipboard operation
reactour copied to clipboard

Positioning when screen size is too small

Open albert-luta opened this issue 4 years ago • 7 comments

Hi, is there a way to change the default positioning of center when the screen size is smaller than the one's of Tour?

This is how it looks when the screen size is bigger: image

This is how it looks when the screen size is too small(ex: on the mobile, when the virtual keyboard is open): image

I would want the input/the top part to be in the view: image

albert-luta avatar May 30 '20 12:05 albert-luta

Hey @lutaalbert, did you find a solution to this?

I'm experiencing something similar now.

LordA98 avatar Apr 14 '21 14:04 LordA98

Hey @LordA98 ,(disclaimer: didn't work with reactour in almost 1y now and don't have access to that project repo anymore) from what I remember I had been tinkering with the style property of that specific step if the window height was smaller than my component, but I don't know exactly what I changed. I looked through the styling reactour was applying(to understand how it positioned elements in the page) and had overwritten them to my liking.

I'm sorry that I can't help you with more information(it's been a long time since), good luck!

albert-luta avatar Apr 16 '21 15:04 albert-luta

@elrumordelaluz any updates?

farrukhayazqazi avatar Sep 21 '21 05:09 farrukhayazqazi

what about this? :smiley:

alejandrotrigo avatar Sep 29 '22 11:09 alejandrotrigo

Mind creating a minimal reproduction in a sandbox in order to allow others to debug your use-case and try to find a solution? Thanks!

elrumordelaluz avatar Sep 30 '22 06:09 elrumordelaluz

I want to place the tour popup sticking to some position even though there is no space in the right/left/top/bottom. If not at least the popup to be at the center of the highlighted content irrespective of screen sizes. It should not automatically change position. Anyway to control this behavior?

PrathipaSoundarajan avatar Mar 23 '23 15:03 PrathipaSoundarajan

I want to place the tour popup sticking to some position even though there is no space…

Did you tried passing a position prop global or local?

elrumordelaluz avatar Mar 27 '23 10:03 elrumordelaluz