Skip to content

Commit 3fc9890

Browse files
committed
Fixing positioning when element is inside of nested relative parent
Example: parent(style=position:relative)>parent>input. This is the correct way of using jQuery position anyways.
1 parent b9742c4 commit 3fc9890

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
@@ -894,7 +894,7 @@
894894
$picker.parent().css("top", $input.outerHeight() + 2 + "px");
895895
}
896896
else{
897-
$picker.parent().css("top", $input.offset().top + $input.outerHeight() + 2 + "px");
897+
$picker.parent().css("top", $input.position().top + $input.outerHeight() + 2 + "px");
898898
$picker.parent().css("left", $input.position().left + "px");
899899
}
900900
});

0 commit comments

Comments
 (0)