Fixed header not in correct place

Fixed header not in correct place

paceypacey Posts: 7Questions: 0Answers: 0
edited June 2012 in FixedHeader
If you insert an element into the DOM above the table and after you have created the fixed header, the table moves down to accommodate the new element but the header stays where it was.

Replies

  • paceypacey Posts: 7Questions: 0Answers: 0
    This can be "fixed" by calling $(window).trigger("scroll") after you have inserted the content
  • paceypacey Posts: 7Questions: 0Answers: 0
    However this hack doesn't work if you are say animating an element using slideUp for example
  • paceypacey Posts: 7Questions: 0Answers: 0
    edited June 2012
    You can see the effect from using the console on the example page and doing
    [code]
    $("h3").after($("").text("BREAK ME"));
    [/code]
This discussion has been closed.