Another easy Menu question! #7022
Replies: 3 comments 2 replies
-
Unfortunately, nothing jumped out of at me with a quick glance. Thanks for providing the stackblitz though. Hopefully one of us will have more time to dive into it at some point if you don't solve it before then. |
Beta Was this translation helpful? Give feedback.
-
hi all - wanted to give react-aria another try and ran into this issue again that I never managed to sort. i've got a little further in that i've narrowed it down to inspecting the page using the device toolbar if you look at the attached gif you'll see that the pop-over's menu-issue.mp4live example here: https://react-aria-menu.pages.dev/ any ideas would be much appreciated! :) |
Beta Was this translation helpful? Give feedback.
-
No worries. Set up a quick project with vite + react, and vite + react + tailwind - Both seemed to work. But I did manage to reproduce the problem (with and without tailwind) when resizing the window in device sim mode. Obviously that's not a problem because who needs to do that keeping the menu open, but perhaps it suggests that astro is resizing the window? (although astro in stackblitz doesn't have this problem at all)
Bit confused now tbh. I might just drop in the menu to a finished/deployed project and see if it does this on actual devices. If it's just a bug in development I guess it doesn't really matter.
…________________________________
From: Robert Snow ***@***.***>
Sent: 19 November 2024 19:59
To: adobe/react-spectrum ***@***.***>
Cc: NickWoodward ***@***.***>; Author ***@***.***>
Subject: Re: [adobe/react-spectrum] Another easy Menu question! (Discussion #7022)
Thanks for the demo, I'm not sure why it's behaving differently in the device simulator compared to the standard browser window. I don't know what astro does, but is this reproducible outside of astro with just tailwind? or is it reproducible without tailwind and using something else?
I think we need to start eliminating some aspects of this setup.
—
Reply to this email directly, view it on GitHub<#7022 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AD4KV2TMG5REMKLNPXU65HT2BOKCBAVCNFSM6AAAAABOBJOJVCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZRGA4TANI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
*Edit: Because I couldn't replicate the problem I've got a really small git repo demonstrating it with a basic setup if someone doesn't mind taking a look? https://github.com/NickWoodward/react-aria-menu/tree/master
Sorry, another menu question! I just really can't see why I'm having this issue. Adding the menu to my fixed header and opening it basically pushes the whole body of the document to the left (the red border is on the
body
tag), even though the popover has a position of absolute:Page structure:
The Header component is identical in my main project and this stackblitz: https://stackblitz.com/edit/withastro-astro-ahpkff?file=src%2Fcomponents%2FHeader.tsx
// Header
// Menu
Know it's difficult to help without a broken example, but I've tried recreating it in a stackblitz and as you can see it works fine there - the Popover positions itself away from the edge of the document :/
In case gifs help:
Beta Was this translation helpful? Give feedback.
All reactions