Skip to content

Commit 6f7ed0c

Browse files
committed
fix popup positioning
1 parent c22b3b4 commit 6f7ed0c

File tree

4 files changed

+5379
-15
lines changed

4 files changed

+5379
-15
lines changed

build/js/tempusdominus-bootstrap-3.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,15 +1886,15 @@ var TempusDominusBootstrap3 = function ($) {
18861886
self.widget.removeClass('pull-right');
18871887
}
18881888

1889-
// find the first parent element that has a static css positioning
1890-
if (parent.css('position') !== 'static') {
1889+
// find the first parent element that has a relative css positioning
1890+
if (parent.css('position') !== 'relative') {
18911891
parent = parent.parents().filter(function () {
1892-
return $(this).css('position') === 'static';
1892+
return $(this).css('position') === 'relative';
18931893
}).first();
18941894
}
18951895

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

19001900
self.widget.css({

build/js/tempusdominus-bootstrap-3.min.js

Lines changed: 2 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)