Skip to content

Commit

Permalink
fix popup positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
masciugo committed May 7, 2020
1 parent c22b3b4 commit 6f7ed0c
Show file tree
Hide file tree
Showing 4 changed files with 5,379 additions and 15 deletions.
8 changes: 4 additions & 4 deletions build/js/tempusdominus-bootstrap-3.js
Original file line number Diff line number Diff line change
Expand Up @@ -1886,15 +1886,15 @@ var TempusDominusBootstrap3 = function ($) {
self.widget.removeClass('pull-right');
}

// find the first parent element that has a static css positioning
if (parent.css('position') !== 'static') {
// find the first parent element that has a relative css positioning
if (parent.css('position') !== 'relative') {
parent = parent.parents().filter(function () {
return $(this).css('position') === 'static';
return $(this).css('position') === 'relative';
}).first();
}

if (parent.length === 0) {
throw new Error('datetimepicker component should be placed within a static positioned container');
throw new Error('datetimepicker component should be placed within a relative positioned container');
}

self.widget.css({
Expand Down
9 changes: 2 additions & 7 deletions build/js/tempusdominus-bootstrap-3.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 6f7ed0c

Please sign in to comment.