ph101pp / jquery-slides

A pretty flexible and highly customizable slideshow/accordion plugin for jQuery.
http://philippadrian.com/projects/jquery-slides
10 stars 3 forks source link

Option definitions and handling #4

Closed ph101pp closed 13 years ago

ph101pp commented 13 years ago

fillSpace // on hold stayOpen resizable

ph101pp commented 13 years ago

Not shure if im going to do this anymore. It's probably to much of a difference and to much additional code that would be needed to implement that.

ph101pp commented 13 years ago

Can be implemented by keeping all the calculations and just animate only the width at the end. Should work fine without breaking the frame...

ph101pp commented 13 years ago

Opts:

fillSpace: true

Slideshow always takes up all the space provided by the bounding box. Bounding box needs a position and defined height and width.

resizable:true

Elements are Positioned Absolute and the active Element is positioned by margins to fill up all space... Vertical version doesn't fill up space by default.. only if content is opening the space. Resizing doesn't need any Javascrit

resizable:false

All elements are positioned Absolute.. also the Active one. Resizing only possible with JS.

stayOpen: true

Elements do not deactivate.. one is always open.

stayOpen: false

Elements deactivate.. slides spread evenly

fillSpace:false

Bounding box grows as needed. Elements are positioned relative.

stayOpen: true

Elements do not deactivate.. one is always open.

stayOpen: false

Elements do deactivate... slides go all to min.

ph101pp commented 13 years ago

implementing the option resizable:

if resizable and limits are set: positioned absolute and active element expands. //DONE

if resizable and no limits are set: positioned relative and everything set in %

if not resizable: positioned relative width defined in px -> static.

everything always "updatable" via greenishSlides("update")

ph101pp commented 13 years ago

Option resizable completely implemented. Everything always positioned absolute.

Closing this issue and opening new one for position relative.