Commit ae600b80 authored by Alexis Reigel's avatar 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.
parent a6509d5a
...@@ -249,7 +249,10 @@ $(function () { ...@@ -249,7 +249,10 @@ $(function () {
// Initialize popovers // Initialize popovers
$body.popover({ $body.popover({
selector: '[data-toggle="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 () { $('.trigger-submit').on('change', function () {
return $(this).parents('form').submit(); return $(this).parents('form').submit();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment