-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FR: Popovers should allow changing size #692
Comments
@ryanmcnamara does the solution proposed here work? #476 If it does, I'll add a note to the docs to mention since it can be a common scenario. |
It almost does, in my case the popover appears on an element in a scrollable table, so making it inline it tends to overflow outside the table and it is hidden. |
@ryanmcnamara is there any way you could remove the overflow on that table? |
The issue is that I have other things in the table (parents or siblings to the popover) that I don't want to overflow |
I'm surprised more people haven't run into this. I'm trying to add a DateTimePicker inside a Popover and ran into this issue immediately. The problem is that the number of weeks can change from month to month, so changing the value of one of the controls can result in a change in height, which messes up the rendering of the popover. First, the popover is opened: Next, I choose September, which results in an increase in height because of the extra row. Notice how the arrow and the target are now both obscured because the popover is taller: After waiting a few moments and/or moving the mouse around, the popover shifts into the correct position, but notice that now there's a gray line visible above the arrow: Now, if I go back to February, the popover gets shorter, but doesn't get positioned immediately, so the rest of the arrow is visible, as is some of the content underneath the popover: I'm using version 2.0.0-beta.3 of everything (and Chrome 64). |
I'm currently working around this by forcing a re-render in the component that creates the |
|
may be possible with resize observer now |
not breaking so bumping to next release |
There are popovers out there that sometimes change size after being initially rendered.
When they do, especially when they change height and are on the side of the element, the arrow gets misaligned. See this example:
Sometimes this change happens instantaneously when a popover gets opened (say <10ms due to multiple render cycles being needed), sometimes it happens after some time (say >1000ms due to an async call completing perhaps).Probably worth keeping that in mind for animation reasons.
The text was updated successfully, but these errors were encountered: