This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
a242a5f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ThomasBurleson "element.offsetWidth" is already an Integer when the forEach loop is executed, so Math.ceiling it returns the same value. I've tested the bugs the previous version (commit a120a35) solved, and they still happen when using the Math.ceil version. You can check it here by adding 4 tabs with "lk" (no quotes) as the title.
EDIT: tested on Chrome
a242a5f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ThomasBurleson,
I was wondering, why do you even need to set a width at all ? As far as I can see it could work fine without ( http://codepen.io/anon/pen/wKbraZ ) the only thing I did was:
But maybe the width have a purpose that I didn't see, in that case please ignore me ;)