bxslider-3
bxslider-3 copied to clipboard
Issue with margins and a possible fix
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
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.
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!