我正在尝试在我们的应用程序上实现一些弹出窗口(使用 Angular 6.0.1, Ngx-bootstrap 2.0.5 and Bootstrap 4.1.1 ),问题是当使用'auto'定位时,屏幕右侧的一些弹出窗口没有't work as expected. Both Left and Center elements work as intended, placing the popover on top or right positioning, but the right side still sets it to ' top',并尝试调整弹出区域的大小 .

由于我们的很多内容都是动态的,因此我无法确定何时会发生并修复它,例如,手动将其设置为“左” .

如果在这种情况下内容可能位于按钮的左侧,那将是很好的 . 任何其他帮助或建议也会很好 .

我无法设置stackBlitz工作并显示此错误,但我们使用以下代码生成popover:

<button popoverTitle="Info" popover="auto auto auto auto auto auto" placement="auto" container="body" triggers="hover tap"> Right </button>

左按钮按预期工作,将内容设置为右:
enter image description here

中心按钮也按预期工作,将内容设置为顶部:
enter image description here

但是右键将其设置为顶部并尝试调整大小(内容在静止之前会改变其大小一些):

enter image description here