nikki / LiteAccordion

A lightweight horizontal accordion plugin for jQuery.
MIT License
224 stars 130 forks source link

Responsive layout #47

Closed IvanIlijasic closed 12 years ago

IvanIlijasic commented 12 years ago

Hey Nikki. I've seen in your Q&A that liteAccordion works properly with percentage width but I can't make it work. Is there a trick that I can't find or it's not possible to use percentage for container width?

Cheers, Ivan

nikki commented 12 years ago

I'm afraid this plugin isn't responsive at the minute, though I have plans for a rewrite when I can get some spare time. Sorry!

janlimpens commented 12 years ago

Please let me second that. I would want to use liteAccordion "fullscreen", as in 100% width and however high the viewport is. Currently I have this as my window.resize handler

function setupAccordion() {
    var acc = $('#accordion');
    try {
      acc.liteAccordion('destroy');
    } catch(err) {}
    acc.liteAccordion({
      containerWidth:$(window).width(),
      slideSpeed:300,
      linkable:true,
      headerWidth: 40
    });
  }

and this is not optimal...

nikki commented 12 years ago

liteAccordion is now responsive, check out the latest version :)