Linesofcode
Linesofcode

Reputation: 5903

Bootstrap-datetimepicker inside <table/> not showing properly

I'm using Eonasdan/bootstrap-datetimepicker inside a <table/> and it works perfectly in some rows, however in the last rows the datetimepicker popup doesn't show in the right place where it should be.

Here's an image that illustrates the problem

enter image description here

And here's JSFiddle where you can try it out.

Upvotes: 2

Views: 12158

Answers (2)

Saqib Habib
Saqib Habib

Reputation: 11

I have solved the issue by adding position:relative; rule to .bootstrap-datetimepicker-widget class in bootstrap-datetimepicker.min.js. and i also have some top position issue so i just set "top:0px !important" in css.

Upvotes: 1

Rohit Agre
Rohit Agre

Reputation: 1528

Apply position:relative to the <td> of your table. will solve your issue. Here's updated fiddle https://jsfiddle.net/znLmpgz7/1/

.table td{
  position:relative;
}

Upvotes: 13

Related Questions