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.

if container height bigger than content height,can not load more data

See original GitHub issue

As https://codesandbox.io/s/yk7637p62z showed , just change styles to below:

const style = {
  height: 5,
  border: "1px solid green",
  margin: 6,
  padding: 8
};

TIM截图20190819104715

scroll page and never load data any more.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:26
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
esbjupreticommented, Feb 7, 2020

Thank you @ankeetmaini But, there is a situation in my list that the user can delete item from the list. And when the user deletes all the item, user won’t be able to scroll. And then the same issue arises. Can you please help me on this.

1reaction
ankeetmainicommented, Feb 6, 2020

Right now there’s no solution, only thing is load upfront more items to have a scroll for sure.

On Thu, Feb 6, 2020 at 12:43 PM pokharelsangam notifications@github.com wrote:

Hello all Have anyone found solution of this issue?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ankeetmaini/react-infinite-scroll-component/issues/121?email_source=notifications&email_token=ABSYHF242THRGEQ6A3I3POLRBO2AXA5CNFSM4IMVS3OKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK6FQAI#issuecomment-582768641, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSYHF2V6JEB7AVRLNDZFO3RBO2AXANCNFSM4IMVS3OA .

Ankeet Maini “Just when the caterpillar thought the world was over, it became a butterfly!”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Div height 100% and expands to fit content [duplicate]
I needed to add height: 100% to html, body and the container div to make it fill the height when there was not...
Read more >
Sizing items in CSS - Learn web development | MDN
The box will always be at least this height, but will then grow taller if there is more content than the box has...
Read more >
height
The height property in CSS defines specifies the content height of boxes and accepts any of the length values.
Read more >
CSS max-height property
The max-height property defines the maximum height of an element. If the content is larger than the maximum height, it will overflow. How...
Read more >
Sizing Components of Guides, Configuring ...
The width and height of the widget must have number values. ... and maxHeight (number) - on resizing the component cannot take more...
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