From 4cdabdc530d5592bd50fb677fee16906f830ecbd Mon Sep 17 00:00:00 2001 From: Alex Melnikov Date: Wed, 7 Jun 2017 14:42:49 +0500 Subject: [PATCH] The picker's offsetHeight is not calculated correctly when calendar is not generated. If options.allowBlank is true, "setPos" does not set the picker position over the input field when the input field is at the bottom of a page. --- jquery.datetimepicker.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/jquery.datetimepicker.js b/jquery.datetimepicker.js index c747ed4..6006885 100755 --- a/jquery.datetimepicker.js +++ b/jquery.datetimepicker.js @@ -1562,10 +1562,6 @@ xchangeTimer = setTimeout(function () { if (_xdsoft_datetime.currentTime === undefined || _xdsoft_datetime.currentTime === null) { - //In case blanks are allowed, delay construction until we have a valid date - if (options.allowBlank) - return; - _xdsoft_datetime.currentTime = _xdsoft_datetime.now(); }