-
Notifications
You must be signed in to change notification settings - Fork 26
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
On window resize > width is not updated #7
Comments
Do you have an example use case that I can use to debug? |
Yes! I uploaded it to http://szstudios.net/jquery-lockfixed/ |
You can download folder here: https://www.dropbox.com/s/0b308uxl5prvrb5/jquery-lockfixed-issue7-files.zip?dl=0 |
You use a fluid width. The issue is when the script locks the container in a fixed position it uses CSS I've worked on a fix for your case: https://gist.github.com/ymschaap/de98598fb0ba6c6b8f50 Haven't tested it out extensively in different scenarios yet to push live, but let me know if that works for you. |
It is much better! Now the width adjusts! There is still an issue when making the browser window narrower, sometimes the content of the page will now be taller (because of the reduced browser window width), and when we have a fixed element, it will overlap with the now taller preceding page content. Thank you very much for your help and your quick action! |
When I resize the browser window horizontally, the width value of my DOM element is not updated, nor is the height of the containing div the plugin created.
This causes elements to overlap with other non-fixed page elements.
Thank you!
The text was updated successfully, but these errors were encountered: