question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Swipeable tabs carousel height limited to 400px

See original GitHub issue

The .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:closed
  • Created 7 years ago
  • Comments:36 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
mchalakovcommented, Feb 3, 2017

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%; }

8reactions
ccunni3commented, Mar 2, 2017

@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";

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found