daniel-nagy / fixed-table-header

Fixed table header directive.
MIT License
88 stars 36 forks source link

Clones head way outside enclosing DIV #18

Closed smlombardi closed 7 years ago

smlombardi commented 7 years ago

My table is in a bootstrap grid:

<div class="container-fluid">
  <div class="row">
    <div class="col-md-12">
      <h1>PMT test</h1>
       <table class="table">
         <thead fix-head>
           <tr>
             ...
           </tr>
         </thead>
         <tbody>
           <tr ng-repeat="d in pmtData">
             ...
           </tr>
         </tbody>
       </table>
    </div>
  </div>
</div>

And with this directive I get: screen shot 2016-07-13 at 10 20 37 am

As you can see, the thead is rendered above the h1 that precedes the table. And its not even fixed.

SandyCarney commented 7 years ago

Move h1 header to the top and try.. `

PMT test

... ...

`

smlombardi commented 7 years ago

That's not valid bootstrap code. I bagged it and found another directive that works.