Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix initial height #469

Merged
merged 2 commits into from Dec 21, 2018
Merged

Fix initial height #469

merged 2 commits into from Dec 21, 2018

Conversation

ghost
Copy link

@ghost ghost commented Dec 14, 2018

Trying to fix initial height bug
This should fix the following reproducible issue: https://codesandbox.io/s/0qr88707wp

Closes #202 #457 #417 #103

@sarmeyer
Copy link
Member

@vyteniskuciauskas-home24 Just finished testing this and it works great. Thanks for taking the time to submit this PR and doing the work of responding to the issues related. I'll cut a release with this fix in since it's such a needed bug fix!

@stefangordon
Copy link

Oh wow I have been watching some of those bugs for literally years - almost sad to see them go ;)

Thanks for this!

@ghost ghost deleted the bugfix/fix-height-issues branch December 21, 2018 07:57
@IMFIL
Copy link

IMFIL commented Dec 25, 2018

Do you know when the release will be live ?

@sarmeyer
Copy link
Member

@IMFIL release 4.4.5 live today

@wereHamster
Copy link

I'm still seeing the issue, and it kindof went away when I set width:100vw on the slides. I didn't investigate much further.

@eduardoabpereira
Copy link

I'm still fighting with this error too. @wereHamster your workaround doesn't work fine, sometimes the content inside slide go out from screen because this width setted.

@yyynnn
Copy link

yyynnn commented Jan 14, 2019

Same here, height is still 0 when routes change (via browser history).

@flikQ
Copy link

flikQ commented Jan 31, 2019

Doesn't seem to be fixed for me

@aamorozov
Copy link

aamorozov commented Feb 4, 2019

Looks like it is still an issue with v4.4.7, needs a hack to actually set the height of the container on the initial load.

@SummitPatel
Copy link

Also still having this issue with 4.4.7.

Temporary fix was to wrap my Review component (i.e. the slides of the carousel) in a div with a height set:

export const ReviewsCarousel = props => (
  <Carousel heightMode={"max"}>
    {props.reviews.length &&
      props.reviews.map((review, i) => {
        return (
          <div style={{ height: 200 }}>
            <Review
              key={i}
              content={review.attributes.review}
              rating={review.attributes.rating}
            />
          </div>
        );
      })}
  </Carousel>
);

@Blobson
Copy link

Blobson commented Mar 31, 2019

You can try this workaround to set fixed height and aspect ratio.

@jibin2706
Copy link

Still having issues with height on initial render

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

setDimensions bug? ul.slider-list too tall after componentDidMount