Email or username:

Password:

Forgot your password?
Top-level
Darin Senneff

@argyleink Adam, is there a way for the popover to shift left/right if it extends outside the viewport edge? I see how to flip it when vertical scrolling, but what if the viewport narrows and the inline edges of the popover now touch the sides?

2 comments
Adam Argyle

@darin that's coming in the v2 of anchor() spec, called "sliding" right now, where it will slide to stay in view!

little angles and triangles that can follow the flipping are also coming in v2 as ::tether pseudo elements

Darin Senneff

@argyleink Ah, very nice! Looking forward to those features. I was playing with custom fallbacks to get that working but didn’t know if that was the correct route.

Go Up