FixedHeader not updating
FixedHeader not updating
Hi,
I really like the fixed header plugin but it doesn't seem to work well with pages that change their layout.
I already use the following on window resize, to fix the headers:
for (var i = 0; i < fixedHeaders.length; i++) {
fixedHeaders[i]._fnUpdateClones(true);
fixedHeaders[i]._fnUpdatePositions();
}
But when an element above the fixed header expands, the fixed header does not move with it. I understand why this happens, relative layout and all, but whats the best way to go about fixing it? Calling that scripts everywhere does not seem like the best way..
The problem even occurs with a bootstrap collapse menu that is the sidebar of the webpage (fixedheader gets pushed down, does not update accordingly).
What is the best way to solve this?