Skip to content
This repository has been archived by the owner on Apr 9, 2019. It is now read-only.

Unable to use lists inside slides #17

Closed
bsilva98 opened this issue Jul 24, 2011 · 8 comments
Closed

Unable to use lists inside slides #17

bsilva98 opened this issue Jul 24, 2011 · 8 comments
Labels

Comments

@bsilva98
Copy link

Hello -- first contact, so let me just say that this is a fabulous widget!

For the bug: I am placing regular HTML inside slides, and it works great until I put a list into it. Then it miscalculates the width of the slides. I narrowed it down to line 41 in the code, and just as a suggestion, using this fixes it:

$slides = $accordion.children('ol', 'ul').children('li')

Thanks!

@bandrzej
Copy link

There is actually an easier fix for line 41:
$slides = $accordion.find('ol > li:not(li > li)'),

This will avoid any sub li's within each slide being to calculate slide width.

@nikki
Copy link
Owner

nikki commented Jul 28, 2011

Thanks guys, I'll get this fixed asap.

@nikki nikki closed this as completed Jul 28, 2011
@nikki nikki reopened this Jul 28, 2011
@bsilva98
Copy link
Author

Great, thanks a bunch!

On 28 Jul 2011, at 20:01, nikki wrote:

Thanks guys, I'll get this fixed asap.

Reply to this email directly or view it on GitHub:
#17 (comment)

@SpoonIsBad
Copy link

Thanks! My whole site is basically based around your accordion, awesome work!

@isleshocky77
Copy link

I had written the following fix for line 41 and then found this bug up here. When trying to use the two recommended fixes, none of them worked for my purposes. Figured I'd throw mine up in case it is of help to anyone else.

      $slides = $accordion.find('> ul > li, > ol > li'),

@nikki
Copy link
Owner

nikki commented Oct 18, 2011

Thanks isleshocky77,

If anyones having major problems with this, it's safe to use the dev version. There's only a couple of theme related issues to work through before I release it as version 2.

Thanks,
Nikki.

@nikki
Copy link
Owner

nikki commented Nov 16, 2011

Should be fixed in v2.

Thanks!
Nikki.

@nikki nikki closed this as completed Nov 16, 2011
@bsilva98
Copy link
Author

Thanks Nikki!

On 16 Nov 2011, at 04:54, nikki wrote:

Should be fixed in v2.

Thanks!
Nikki.


Reply to this email directly or view it on GitHub:
#17 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants