Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ion-refresher - spinner not showing

I have a problem with the ion-spinner.

The pulling text and icon are showing up: Pulling text and icon

But when I release it, the area where the spinner should be stays empty.

Spinning icon

My ion-refresher is like this

<ion-refresher
        pulling-text="Pull to refresh..."
        on-refresh="doRefresh()"
        spinner="crescent">
</ion-refresher>

The doRefresh() function

$scope.doRefresh = function() {
    Entry.all().$promise.then(function(data) {
        $scope.logs = data;
        $scope.$broadcast('scroll.refreshComplete');
    });
}

What´s going on?

UPDATE:

I tested every spinner and the only one working is spiral but way too big. Only about half of the spinner is visible

Spiral Spinner

According to the docs http://ionicframework.com/docs/api/directive/ionRefresher/ the ionSpinner should work

like image 980
Mazz Avatar asked Aug 25 '15 11:08

Mazz


3 Answers

if someone else runs into this issue, for me this fixed it:

ion-refresher {
  z-index: 10;
}
like image 118
Ali Nasserzadeh Avatar answered Nov 13 '22 04:11

Ali Nasserzadeh


Old question, but I experienced the same problem, and I found a solution. The spinner has always been there, but it is white, so you can't see it with a white background. To fix this, add following code to your CSS-file, replacing "skyblue" with your choice of color.

.spinner svg {
  stroke: skyblue;
  fill: skyblue;
}

Also, here is my ion-refresher.

<ion-refresher on-refresh="collectFeed()" pulling-text="Pull to refresh" spinner="ios-small"></ion-refresher>
like image 21
Ola Alsaker Avatar answered Nov 13 '22 04:11

Ola Alsaker


This is very likely too late, but this happened to me. Basically I had overwritten .spnner svg {} in the css file and forgot. So, all the later loading spinners kept taking the same height and width.

like image 1
Shakib-Bin Hamid Avatar answered Nov 13 '22 05:11

Shakib-Bin Hamid