From 2ac7cec093bdb1ed1b59872414dfbebefa610dfe Mon Sep 17 00:00:00 2001 From: David Lassanske Date: Tue, 2 Jul 2013 11:14:42 -0400 Subject: [PATCH] Top offset wasn't being applied when nested inside a .control-group setup. --- src/js/bootstrap-datetimepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/bootstrap-datetimepicker.js b/src/js/bootstrap-datetimepicker.js index 591bf42a5..7893808a6 100644 --- a/src/js/bootstrap-datetimepicker.js +++ b/src/js/bootstrap-datetimepicker.js @@ -263,7 +263,7 @@ var position = 'absolute'; var offset = this.component ? this.component.offset() : this.$element.offset(); this.width = this.component ? this.component.outerWidth() : this.$element.outerWidth(); - offset.top = offset.top + this.height; + offset.top = offset.top + this.height.context.offsetHeight; var $window = $(window);