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.

Loading icon of infinte-scroll not showing with collection-repeat

See original GitHub issue

Using ng-repeat (loading icon appears): http://codepen.io/anon/pen/CBtEg Using collection-repeat (doesn’t appear): http://codepen.io/matiastucci/pen/wkECs

Probably because of this?:

“You should not use the ng-show and ng-hide directives on your ion-content/ion-scroll elements that have a collection-repeat inside. ng-show and ng-hide apply the display: none css rule to the content’s style, causing the scrollView to read the width and height of the content as 0. Resultingly, collection-repeat will render elements that have just been un-hidden incorrectly.”

I know this is something small, but if you can fix it: great!

Thanks!

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:24 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
swiftyonecommented, Jan 28, 2016

For me a simple workaround did the trick until it is fixed:

ion-infinite-scroll:not(.active) .spinner,
ion-infinite-scroll:not(.active) .icon:before {
    display: inline-block;
}

It is not mandatory that the icon is only visible if the ion-infinite-scroll-Element is active if you use a ng-show or ng-if directive:

<ion-infinite-scroll ng-show="showInfinite" icon="ion-load-c" on-infinite="loadData()">
</ion-infinite-scroll>
0reactions
shivaradcommented, Jun 29, 2016

ion-infinite scrolling is not working for me in v1.1.0 for vs2015 package of phongeap!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Loading icon of infinte-scroll not showing with collection- ...
Fixed. Had to set the items after the collection repeat to display: block to make them always get the right size.
Read more >
Infinite scrolling and collection-repeat / spinner not shown
Using ng-repeat, my ion-inifinite-scroll displays the spinner (icon) => cool However, with collection-repeat, ion-infinite-scroll works well ...
Read more >
Loading spinner is not showing at the bottom of infinite scroll
I am quite new to all of these. Loading spinner somehow not showing up at the bottom of infinite scroll <ion-infinite-scroll #infinite ( ......
Read more >
LWC lightning-datatable Infinite Scrolling is not stopping ...
Problem: When there is less data like 1-2 record to show, then spinner is always visible and it doesn't go away. Please help....
Read more >
overscroll-behavior - CSS: Cascading Style Sheets | MDN
The overscroll-behavior CSS property sets what a browser does when reaching the boundary of a scrolling area.
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