You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if there was a mode where scrolling was only done on tab boundaries. Ie, if I page to the right, then the tab that is shown first in the list should be completely visible. This would help a lot with the aesthetics of the control as people are interacting with it.
The text was updated successfully, but these errors were encountered:
I went ahead and implemented this. It can be found @ gregveres/bootstrap-nav-tab-scrollable (forked from here).
I don't expect that you will want to do a pull request because I didn't change this to be an option, I just implemented it so that it worked this way rather than landing on partial tabs.
You may want to look at the code though. I did a few things that you may want to bring into your code:
There was at least one place where you used width() instead of outerWidth().
I capture all the jQuery selectors into variables so that I am not doing the jQuery finds all over the place - especially during the manual scroll and resize event handlers.
I added a debounce (shamelessly taken from: jmosbech/StickyTableHeaders) to the scroll and resize handlers.
Anyway, thanks for creating this in the first place. This version works really well for my purposes.
It would be nice if there was a mode where scrolling was only done on tab boundaries. Ie, if I page to the right, then the tab that is shown first in the list should be completely visible. This would help a lot with the aesthetics of the control as people are interacting with it.
The text was updated successfully, but these errors were encountered: