bxslider-3 icon indicating copy to clipboard operation
bxslider-3 copied to clipboard

Issue with margins and a possible fix

Open yoxalld opened this issue 12 years ago • 2 comments

I was having issues with the fact that the individual slide width was being miscalculated because they had margins on both sides. I need the margins to keep each slide separate. So to fix the issue I replaced every instance of outerWidth() with outerWidth(true) which calculates the margin into the width for each item.

I don't know if this will break anything else but so far I have not had any issues. If there is a better way to accomplish this I am open to suggestions but this may solve some issues for other people who want margins for each of their slides. Thanks

yoxalld avatar Oct 03 '12 15:10 yoxalld

You're a true hero my friend. I was having the same issue with vertical scroll. Instead of "outerWidth()" I've set the "outerHeight()" to true.

Warface avatar Oct 31 '12 17:10 Warface

Glad I was able to help. If you do find any issues with this workaround please post them. As I said I don't know for sure is this will break anything else, but it seems to work for me.

Hopefully this is a solid fix to the issue and it can be added to an update so we can all benefit. Thanks!

yoxalld avatar Oct 31 '12 18:10 yoxalld