Skip to content

Commit dd9eb05

Browse files
committed
Merge pull request #61 from AddoSolutions/patch-1
Fixing positioning when element is inside of nested relative parent
2 parents c37f26d + 3fc9890 commit dd9eb05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.simple-dtpicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@
908908
$picker.parent().css("top", $input.outerHeight() + 2 + "px");
909909
}
910910
else{
911-
$picker.parent().css("top", $input.offset().top + $input.outerHeight() + 2 + "px");
911+
$picker.parent().css("top", $input.position().top + $input.outerHeight() + 2 + "px");
912912
$picker.parent().css("left", $input.position().left + "px");
913913
}
914914
});

0 commit comments

Comments
 (0)