From bdf36f24a942a27e5d69ade06d1cb8c7110f334b Mon Sep 17 00:00:00 2001 From: Lucas Mendelowski Date: Thu, 12 Dec 2013 10:28:56 +0800 Subject: [PATCH] Fix for right positioning of the widget It's a fix to the fix I made couple of days ago. I've forgotten to use new value after calculating new position for widget when it doesn't fit the place on the right side of the input field. Sorry! --- jquery.datetimepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.datetimepicker.js b/jquery.datetimepicker.js index 0e82cac..a9900d0 100644 --- a/jquery.datetimepicker.js +++ b/jquery.datetimepicker.js @@ -807,7 +807,7 @@ if( left+datetimepicker[0].offsetWidth>$('body').width() ) left = offset.left-datetimepicker[0].offsetWidth+datetimepicker.data('input')[0].offsetWidth; datetimepicker.css({ - left:offset.left, + left:left, top:top }); };