Swipeable tabs carousel height limited to 400px
See original GitHub issueThe .carousel
div
is limited to a height
of 400px
.
Sometimes, an ever smaller height
is forced with a style
attribute.
This is actually to small for the content I want to show under the tabs.
The issue:
Why is it limited to 400px
? How can I fix this?
Thank you for your response.
Issue Analytics
- State:
- Created 7 years ago
- Comments:36 (1 by maintainers)
Top Results From Across the Web
How to Customize tab content height in JavaScript Tabs control
You can change the Tab content height by using the heightAdjustMode property. By default, the Tab content heightAdjustMode property is set to Content...
Read more >Bootstrap carousel width and height - Stack Overflow
just put height="400px" into image attribute like <img class="d-block w-100" src="../assets/img/natural-backdrop.jpg" height="400px" alt="First slide">.
Read more >How To Resize Materialize Card Carousel - ADocLib
Ask questionsSwipeable tabs carousel height limited to 400px. The.carousel div is limited to a height of 400px. The issue: Why is it limited...
Read more >react-gallery-carousel - npm
Name Type Default
images Array undefined
children node or Array of nodes undefined
index Number undefined
Read more >Tabs - OutSystems 11 Documentation
Auto - The tab height adjusts to the content. This is the default. 400px - The height of the tab is 400px. TabsVerticalPosition...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The problem is that the swipeable tabs are styled by the carousel css. Reference #4148 . In materialize.css change:
.tabs-content.carousel { height: 100%; overflow-x:hidden; overflow-y: scroll; } .tabs-content.carousel .carousel-item { width: 100%; height: 100%; } html,body{ overflow:hidden; height:100%; }
@Blaconix @gillesbs
Set the height and width properties of the selector
.tabs-content.carousel .carousel-item
to whatever you want the width and height to be.Then in a document ready function, change the height of the container to be whatever the height of the content is with a statement similar to:
document.querySelector('.tabs-content.carousel').style.height = window.innerHeight + "px";