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
Position and size of a popover changes on click on the window.
Popover is placed inside of navbar and has a dynamic HTML content.
The issue appears to be related to popover's width changes due to dynamic nature of the content. Looks that ngbPopover calculates positioning before the internal content is fully displayed. And of course IE11/Edge acts differently.
IE11/Edge:
Behavior: no changes when clicking
Chrome/Firefox:
Behavior: After several clicks anywhere in the window the popover moves toward the right place. But still arrow is not completely centered as mentioned here: #2089
I have noticed that when the width is set explicitly such as <div class="row no-gutters" style="width: 194px;">
then it looks more as expected but this doesn't seam to be a good solution when content is dynamic.
Another thing I have noticed that might be related to the same issue is position changes on resizing window:
Link to minimally-working plunker that reproduces the issue:
I have the same issue. Mine is just a simple line of text that has different sizes... for my specific use case I can probably just get away with using a fixed width but the solution is probably something to the effect of creating but not rendering the content, measure it, move the popover accordingly, then render...
Bug description:
Popover is placed inside of navbar and has a dynamic HTML content.
The issue appears to be related to popover's width changes due to dynamic nature of the content. Looks that ngbPopover calculates positioning before the internal content is fully displayed. And of course IE11/Edge acts differently.
IE11/Edge:
Behavior: no changes when clicking
Chrome/Firefox:
Behavior: After several clicks anywhere in the window the popover moves toward the right place. But still arrow is not completely centered as mentioned here: #2089
I have noticed that when the width is set explicitly such as
<div class="row no-gutters" style="width: 194px;">
then it looks more as expected but this doesn't seam to be a good solution when content is dynamic.
Link to minimally-working plunker that reproduces the issue:
https://stackblitz.com/edit/angular-ipuuur
Version of Angular, ng-bootstrap, and Bootstrap:
Angular: 5.2.10
ng-bootstrap: 1.1.2
Bootstrap: 4.1.0
The text was updated successfully, but these errors were encountered: