-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Popover placement via function or 'auto' argument #992
Comments
i have the same issue with popovers near the edges |
I have the same issue. Is there an ETA on "auto" placement? |
The auto feature is working well for the cases when
However, we don't have the same behavior for the |
for me auto is not usable because of the missing container functionality |
Ideally it would be nice to implement this the same as bootstrap. Specify auto and then the default position. When the default is outside the viewport it should flip to the opposite. So "auto right" would default to right and when right is outside the viewport it would shift to the left. |
@cannontechnology but we've got support for this already via |
@anhkind in the meantime there is a way to deal with the left and right edges. Depending on the proximity of the popover to the viewport's lateral edge, you might want to use:
OR
|
Popover still overflows despite |
Is there any solution for this issue now? |
The presence of this type of feature is the -only- reason I'd use bootstrap popovers over a custom solution. Yet it is not working. |
@leye0 please look at https://ng-bootstrap.github.io/#/positioning and open an issue, if something is not working for you → https://github.com/ng-bootstrap/ng-bootstrap#you-think-youve-found-a-bug |
In the Bootstrap 4 docs, the popover's placement option can accept a function or an 'auto' string argument: http://v4-alpha.getbootstrap.com/components/popovers/#options
Does ng-bootstrap plan to support this?
I need this to make sure that popovers near the edge of the screen do not overflow.
The text was updated successfully, but these errors were encountered: