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.

Carousel has no width if parent uses Flexbox

See original GitHub issue

Issuehunt badges

Describe the bug I am using the carousel inside a section element which uses Flexbox, but the BrainhubCarousel__track and the BrainhubCarouselItem elements are all getting width: 0px; max-width: 0px; min-width: 0px;

To Reproduce I created this CodeSandbox which reproduces the issue.

Expected behavior Slides and track elements should get the appropriate width.

Screenshots If applicable, add screenshots to help explain your problem.

Environment

System:
    OS: macOS 10.15.3
    CPU: (8) x64 Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz
    Memory: 241.82 MB / 16.00 GB
  Binaries:
    Node: 10.13.0 - ~/.nvm/versions/node/v10.13.0/bin/node
    Yarn: 1.21.1 - /usr/local/bin/yarn
    npm: 6.4.1 - ~/.nvm/versions/node/v10.13.0/bin/npm
  Browsers:
    Chrome: 80.0.3987.149
    Firefox: 74.0
    Safari: 13.0.5

IssueHunt Summary

max-arias max-arias has been rewarded.

Backers (Total: $56.00)

Submitted pull Requests


Tips

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
issuehunt-app[bot]commented, May 15, 2020

@piotr-s-brainhub has rewarded $50.40 to @max-arias. See it on IssueHunt

  • 💰 Total deposit: $56.00
  • 🎉 Repository reward(0%): $0.00
  • 🔧 Service fee(10%): $5.60
1reaction
piotr-s-brainhubcommented, May 11, 2020

@max-arias

Could you address the last comments in https://github.com/brainhubeu/react-carousel/pull/467 ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

html - Flexbox inside carousel - No resizing - Stack Overflow
I've successfully coded a simple carousel based on three items being shown inside a flexbox. The movement of the carousel is based on ......
Read more >
Not a bug - Carousel.less width increases, losing control ...
Not a bug Carousel.less width increases, losing control, when Carousel container is being used inside an element of a Flexbox container.
Read more >
Grid system - Bootstrap
Bootstrap's grid system uses a series of containers, rows, and columns to layout and align content. It's built with flexbox and is fully...
Read more >
Typical use cases of flexbox - CSS: Cascading Style Sheets
In this guide, we will take a look at some of the common use cases for flexbox — those places where it makes...
Read more >
Adjusting the Container's Size and Behavior - Elementor
If the container is nested in a parent container, the nested will take the full parent's content width. Boxed vs. Full Width. If,...
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