TrevorS / bootstrap3-datetimepicker-rails

This gem packages the bootstrap-datetimepicker for the Rails 3.1+ asset pipeline.
MIT License
292 stars 123 forks source link

Calendar Css Broken #42

Closed dahlia05 closed 8 years ago

dahlia05 commented 8 years ago

image

Is there any suggestion, why the css is broken

This is has been used in following way

<%= f.label :validTill, :class => 'form-label' %>
<%= text_field :validTill, nil, class: 'form-control', data: { date_format: 'YYYY/MM/DD' }%>
<%= @job_detail.errors[:validTill].join(", ") %>
learn-to-program-easily commented 8 years ago

What about looking at the z-index of your div, the one with "For Candidates"?

dahlia05 commented 8 years ago

I have not set any z-index to any of the div element and apparently I am getting this issue on every where I am trying to use datepicker. image

dahlia05 commented 8 years ago

Hey Sorry for disturbing you. The error was in the css of bootstrap datepicker css from https://github.com/Eonasdan/bootstrap-datetimepicker/

.bootstrap-datetimepicker-widget.dropdown-menu { margin: 2px 0; padding: 4px; width: 19em; }

19em is too small and the other width was 39 em. So as i increase the width from 19 to 25. This got fixed,

Thanks a million for this gem. It is really a nice one.