Skip to content
Snippets Groups Projects
Commit ae600b80 authored by Alexis Reigel's avatar Alexis Reigel
Browse files

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
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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();
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment