Here is an example code (SSCCE) that showcases the issue I am facing. The MaterializeCSS frontend framework documentation states:
Scrollable Tabs Tabs automatically become scrollable
Source
However, when I attempt to use more tabs than can fit on the screen width without scrolling, the tabs do not actually become scrollable as promised in the documentation.
I am looking for a solution or workaround to address this problem.
The guide provided by the documentation shows this image:
https://i.sstatic.net/LI0EL.png
But when I run a test on my local server following their instructions, only 4 tabs are visible on the screen out of a total of 11 tabs - and they are not scrollable as shown in this image:
https://i.sstatic.net/33Q0R.png
$('ul.tabs').tabs();
.row {
background-color: wheat;
}
ul {
background-color: cyan;
}
li {
background-color: pink;
}
html, body {
overflow-x: hidden;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="row">
<div class="col l12">
<ul class="tabs">
<li class="tab col l3"><a href="tabOne" class="active">Tab 1</a></li>
<li class="tab col l3"><a href="tabTwo" class="disabled">Tab 2 Disabled</a></li>
<li class="tab col l3"><a href="tabThree" class="">Tab 3</a></li>
<li class="tab col l3"><a href="tabFour" class="">Tab 4</a></li>
<li class="tab col l3"><a href="tabFive" class="">Tab 5</a></li>
<li class="tab col l3"><a href="tabSix" class="disabled">Disabled Tab 6</a></li>
<li class="tab col l3"><a href="tabSeven" class="">Tab 7</a></li>
<li class="tab col l3"><a href="tab Eight" class="">Tab 8</a></li>
<li class="tab col l3"><a href="tab Nine" class="">Tab 9</a></li>
<li class="tab col l3"><a href="tab Ten" class="">Tab 10</a></li>
<li class="tab col l3"><a href="tab Eleven" class="">Tab 11</a></li>
</ul>
</div>
</div>
<!--.row-->