Nerian / bootstrap-datepicker-rails

A Datepicker for Twitter Bootstrap, integrated with Rails assets pipeline
MIT License
649 stars 182 forks source link

Lost styles? #59

Closed rebyn closed 11 years ago

rebyn commented 11 years ago

Hi, the datepicker menu doesn't look quite right on my end. Any clue on what I may have missed here?

screen shot 2013-06-13 at 11 34 17 pm

Nerian commented 11 years ago

Looks good on my test app.

Check the test app and see what it's different from yours.

If they are the same, then use Chrome inspector to see what styles are being applied to the datepicker. Perhaps you have some other css that is overwriting the ones from bootstraps datepicker's.

rebyn commented 11 years ago

Yeah, there was a conflict with jQueryUI library :).

aaronchi commented 11 years ago

@rebyn Can you explain the issue? I have the same problem.

rebyn commented 11 years ago

@aaronchi don't know why however after removing jQueryUI everything is fine for me

Nerian commented 11 years ago

It's because jQueryUI datepicker has the same way to initialize a field as Bootstrap Datepicker.

http://jqueryui.com/datepicker/

So I think what you actually see in action is jQueryUI's datepicker.

caseydierking commented 11 years ago

How can I keep the JQueryUI installed AND use this datepicker? Argh!

Nerian commented 11 years ago

@MisterOptimist Try requiring bootstrap-datepicker-rails after you require jquery-ui – both in application.js and application.css.