Code Monkey home page Code Monkey logo

Comments (2)

KevinBatdorf avatar KevinBatdorf commented on September 17, 2024

The slider also adapts on resize (for orientation changes). So you
could also just trigger a resize event with jQuery.

I would probably be better to just leave it in the hands of the
developer. I want to find reasons to remove code rather than add more
in. This can be added case by case if someone needs it. I'm rebuilding
the site and plan to make a bunch more tutorials, so this is probably
something I should cover.

On 4/21/13, Avril [email protected] wrote:

Its not really an issue, just sharing my idea and thoughts about issue #36

So we found here that if slider is initialised (rendered) within
display:none; container,
where dimensions within this container are set to % or not set at all,
then all elements have dimensions 0x0 (thats what firebug shows when its
collapsed).
Therefore it is normal that slider have no clue what dimension should it set
itself to,
and it initialises with some random stuff. Then after expanding it looks
like messed up.

Wraping it into div and setting some predefined dimensions within this
hidden container,
will fix it and give slider data which it will adjust to, but then - whole
idea about liguid,
not work here because its constant dimensions not %

While we know what happen, how it happen and what cause this,
we may think about some solution.
So if it initialise with unknown dimensions and after expanding it
not-adjust,
to new dimensions then...

How about adding some event which would be fired when parent element /
container,
change its dimensions, and slider would adjust / refresh self to this new
dimensions.
This should nicely fix such issues


Reply to this email directly or view it on GitHub:
#37

Kevin

from liquidslider.

avril-gh avatar avril-gh commented on September 17, 2024

Thanks for reply.
Yes, just wanted you to know about this issue cos if i encountered it probably someone else later will do also,
and its good to know what exacly is happening in this case.

this is probably something I should cover.

Good idea.

Ok, while you know about it, ill close this issue.

from liquidslider.

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.