You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to use an offset to place the floating element diagonally adjacent to a target with a smaller height (I believe this is important to note).
example:
I believe I'm using the floating ui api correctly (at least, according to their docs) in how I'm setting the offset:
However, I am trying to use a custom arrow icon. I am finding that setting a height larger than 16px (the initial shepherd styling for the arrow) causes the floating element's position to jump, such that it is no longer aligned how I would like. This is for a right-end-positioned step.
example (17px height arrow)
I'm wondering if this is a bug in how shepherd is using floating ui or if it's improper usage on my part. If it's something on my end, could I please get some guidance for how to achieve what I want?
In playing around with it, it seems to be some function of the target height vs. the arrow size that causes the floating element to jump. e.g. a 17px arrow on a 24px target will not be positioned correctly, but will be positioned correctly on a 25px target. I don't see why this is, as I would expect the positioning of the floating element to be independent of the size or position of the arrow.
The text was updated successfully, but these errors were encountered:
Hi, I'm trying to use an offset to place the floating element diagonally adjacent to a target with a smaller height (I believe this is important to note).
![image](https://private-user-images.githubusercontent.com/48655241/357434961-df324cda-d3e6-44db-9e29-2ec1970fdb35.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNTI2ODksIm5iZiI6MTczOTM1MjM4OSwicGF0aCI6Ii80ODY1NTI0MS8zNTc0MzQ5NjEtZGYzMjRjZGEtZDNlNi00NGRiLTllMjktMmVjMTk3MGZkYjM1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDA5MjYyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMxZmZmYmMyM2RlZTc2YjgzNzgwZDE3ODMyZjk1OWY1NDE0Mjc2ODEyMzNhMWEwNWNmYzYzNzQwNGQ5ZTNiZTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.UQFAdyyx1XmqHEu3DcUhiJdveqLREXnPL243C1ic51E)
example:
I believe I'm using the floating ui api correctly (at least, according to their docs) in how I'm setting the offset:
However, I am trying to use a custom arrow icon. I am finding that setting a height larger than 16px (the initial shepherd styling for the arrow) causes the floating element's position to jump, such that it is no longer aligned how I would like. This is for a right-end-positioned step.
example (17px height arrow)
![image](https://private-user-images.githubusercontent.com/48655241/357437109-c365dcb0-3f91-4343-9e66-4c9b995911d5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNTI2ODksIm5iZiI6MTczOTM1MjM4OSwicGF0aCI6Ii80ODY1NTI0MS8zNTc0MzcxMDktYzM2NWRjYjAtM2Y5MS00MzQzLTllNjYtNGM5Yjk5NTkxMWQ1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDA5MjYyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAzY2Q4YmM5NjQzNDRlZDNjN2JjZmJjY2Q3NmY1YTliM2M3MmViMjUwMDg0NDBlNzQ2MDlhNDNhMzFjM2U4Y2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.UFyJnABHwkSkfTNibqxQrpiHPPXMGb89KGe48JDMQHQ)
I'm wondering if this is a bug in how shepherd is using floating ui or if it's improper usage on my part. If it's something on my end, could I please get some guidance for how to achieve what I want?
sandbox
In playing around with it, it seems to be some function of the target height vs. the arrow size that causes the floating element to jump. e.g. a 17px arrow on a 24px target will not be positioned correctly, but will be positioned correctly on a 25px target. I don't see why this is, as I would expect the positioning of the floating element to be independent of the size or position of the arrow.
The text was updated successfully, but these errors were encountered: