提交 ae600b80 编写于 作者: A Alexis Reigel

set the popover's viewport to the main content

the position of the popover is correctly calculated and positioned to
the bottom when the navigation would overlap the popover.
上级 a6509d5a
......@@ -249,7 +249,10 @@ $(function () {
// Initialize popovers
$body.popover({
selector: '[data-toggle="popover"]',
trigger: 'focus'
trigger: 'focus',
// set the viewport to the main content, excluding the navigation bar, so
// the navigation can't overlap the popover
viewport: '.page-with-sidebar'
});
$('.trigger-submit').on('change', function () {
return $(this).parents('form').submit();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册