sjmc11 / tourguide-js

TourGuide is a Javascript library for creating user tours and on-boarding steps for your apps.
https://tourguidejs.com
MIT License
592 stars 27 forks source link

When do we start using the `dialogPlacement` property? #6

Closed ThornWalli closed 9 months ago

ThornWalli commented 1 year ago

Hello just have a problem with the positioning of the dialog.

Unfortunately I can't give an alignment to a single step here. Therefore I wanted to try it with the tour option dialogPlacement.

Now I assumed, if set

{
dialogPlacement: 'bottom
}

all dialogs are shown below?

Example:

image

sjmc11 commented 1 year ago

Hi @ThornWalli - I'll check this out and get back to you.

The popper placement is derived from floating UI - so if there is not enough room for the desired placement it will try and reposition the popover for best visibility.