Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headers Stay stuck after reposition #348

Closed
AvogadroSG1 opened this issue Jan 25, 2017 · 3 comments
Closed

Headers Stay stuck after reposition #348

AvogadroSG1 opened this issue Jan 25, 2017 · 3 comments

Comments

@AvogadroSG1
Copy link

AvogadroSG1 commented Jan 25, 2017

Hello!

We use JQuery 3.1.1 and Bootstrap 3. Before updating to JQuery 3.1.1 this worked fine.

Problem is caused when the window is resized. It used to automatically recalculate the headers (I assumed did an automatic reflow). Now the headers become stuck and don't move anytime after it.

My current workaround is:

              var resizeTimer;
                $(window).resize(function () {
                    clearTimeout(resizeTimer);
                    resizeTimer = setTimeout(reinitFixedHeaders, 50);
                });

                function reinitFixedHeaders() {
                    $(".fixed-header").floatThead('destroy');
                    $(".fixed-header").floatThead({ zIndex: 60 });
                }

Fiddle: https://jsfiddle.net/avogadrosg1/hrr4b2ob/1/

Browsers: IE 11, FireFox 50.1
OS: Windows 8.1 and 10
JQuery 3.1.1
Newest FloatThead

Edit: Removed some text

@mkoryak
Copy link
Owner

mkoryak commented Jan 25, 2017

This is a bug. I'll fix it in the next 24 hours and release a new version

@mkoryak mkoryak added the bug label Jan 26, 2017
@mkoryak
Copy link
Owner

mkoryak commented Jan 26, 2017

fixed in 2.0.0
https://github.com/mkoryak/floatThead/releases/tag/2.0.0

your fiddle magically works

@lock
Copy link

lock bot commented Dec 10, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants