Coder Social home page Coder Social logo

Scrollbar and Tooltip about jquery-scroll HOT 9 CLOSED

thomd avatar thomd commented on June 3, 2024
Scrollbar and Tooltip

from jquery-scroll.

Comments (9)

me3design avatar me3design commented on June 3, 2024

Hi Thomas, just checking to see if you have had time to look into the issue I mentioned above?

from jquery-scroll.

thomd avatar thomd commented on June 3, 2024

Hi Brian,

I checked your page gp.me3design.com regarding this tooltip problem.

Actually there are two issues:

First, it was not possible to meassure the content hight, as your tooltip content contains textnodes with break-tags. I fixed this with a workaround for now.

Second, the scrollbar-plugin must be called after the tooltip is shown. For this, I did a little proof of concept and put it on heroku ( http://gp-scroll.heroku.com - just temporarily, I will remove it later). See also some comments in the gist https://gist.github.com/902680 . Currently I'm not sure if it is really necessary. I'll keep investigating it.

I hope this helps for now.

Thanks for pointing to these bugs.

Regards,
Thomas

from jquery-scroll.

thomd avatar thomd commented on June 3, 2024

Hi Brian,

I just noticed that there is a bug in the scroll-plugin causing increasing nested elements within the tooltip. I'm going to fix this...

Regards, Thomas

from jquery-scroll.

me3design avatar me3design commented on June 3, 2024

Hi Thomas,

Thanks a lot for looking into this issue. Looks like it's very close to being fixed. All in all it's working now thanks to all your mods, but the bug causing the increasing nested divs is an issue. Let me know when you get around to addressing it...

Best, Brian

from jquery-scroll.

me3design avatar me3design commented on June 3, 2024

Hi Thomas,

I really appreciate that you took the time to look into this issue. I got it wired up on the dev site: http://gp.me3design.com and it does work, but I'm concerned that every time the tooltip is called another hidden nested div is created to measure the contentHeight. I can see in the js that you have an alternative clone method that may or may not work. I did try un-commenting the clone method but it breaks the layout and doesn't work as written.

Would it be possible to add a contentHeight 'auto' or 'number' to the options to set content height explicitly? That way one could hard code the height and eliminate the calculations required to find the height. More of an issue in hidden elements.

I wish I new more about javascript so I could offer some legitimate help. Thanks again for looking at it.

Best, Brian

from jquery-scroll.

me3design avatar me3design commented on June 3, 2024

Hi Thomas,

Have you had time to look into the nested div issue?

from jquery-scroll.

thomd avatar thomd commented on June 3, 2024

Hi, sorry for my late response.
The nested div issue should be fixed. Could you please test?

from jquery-scroll.

me3design avatar me3design commented on June 3, 2024

Hi Thomas,
Thanks for all your work on this js. I have uploaded the new code on the dev site and the issue is fixed. Woohoo!

from jquery-scroll.

thomd avatar thomd commented on June 3, 2024

Thanks for testing. I'm glad your issue is fixed.

from jquery-scroll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.