Remove dependency of jquery datepicker #109

quard8 opened this Issue Jul 1, 2013 · 1 comment


None yet
2 participants

quard8 commented Jul 1, 2013

Currently, jQuery Datepicker has dependency on div with "input-datepicker" class. Without this div, datepicker has wrong alignment.

It's not convinient to like this, because datepicker can be dependend only on input element


iurevych commented Jul 4, 2013

Fixed in 1.2
Not to wait on release here is the fix:

// Now let's align datepicker with the prepend button
$(datepickerSelector).datepicker('widget').css({'margin-left': -$(datepickerSelector).prev('.btn').outerWidth() - 2});

Also you need to set margin-left: 0 to .ui-datepicker inside ui-datepicker.less

iurevych closed this Jul 4, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment