Datepicker same width as the input in a bootstrap grid layout
I have an input field that has a bootstrap class of "col-xs-6". This input has a datepicker associated and I need it to be the same size. I used the beforeShow event to calculate the width of the input and place it on the datepicker. However this works only if the user does not change the month.
Can this be achived?
I saw that you can change the size using css but as you know the grid layout is dynamic so I can not use the css change since it will make the datepicker with fixed size.