Comments (1)
I faced the same issue, but I found a workaround for this.
It happens because ion-refresher set the top style property and alpha-scroll also do this. So when you use the refresher for first time it duplicates the top property of alpha scroll.
Workaround:
In your template set an ID for the alpha-scroll
<ion-content no-bounce>
<ion-refresher (ionRefresh)="doRefresh($event)">
<ion-refresher-content
pullingText="{{'pullto' | translate}}">
</ion-refresher-content>
</ion-refresher>
<ion-alpha-scroll #alphaScroll
[listData]="favorites"
key="title"
[itemTemplate]="alphaScrollItemTemplateRef"
[currentPageClass]="currentPageClass"
[triggerChange]="triggerAlphaScrollChange">
...
</ion-alpha-scroll>
</ion-content>
In your page.ts use ViewChild to get alpha scroll element and than change doRefresh function. Set top: 0px to the .ion-alpha-sidebar. Something like this:
import { Component, ViewChild, ElementRef } from "@angular/core";
...
export class YourPage{
@ViewChild("alphaScroll", { read: ElementRef }) alphaScroll: ElementRef;
...
doRefresh(refresher) {
for (let element of this.alphaScroll.nativeElement.childNodes) {
if (element.className == 'ion-alpha-sidebar') {
element.style.top = '0px';
}
}
...
}
}
It solved the problem for me. It's not a good solution but for now it works.
Hope it Helps.
from ionic2-alpha-scroll.
Related Issues (20)
- main.js:55857 EXCEPTION: Error in ./IonAlphaScroll class IonAlphaScroll - inline template:1:9 caused by: Type MapToIterable is... HOT 13
- Make component work with AoT compiling HOT 12
- App break after installation HOT 2
- Alphabet out of order [iOS] HOT 1
- Alpha Scroll with ion-infinite-scroll HOT 4
- Error special characters HOT 2
- Support Ionic 4 HOT 7
- Template parse errors - with latest 2.0.1 package HOT 1
- Update for use with Ionic 2/Angular 2 Release Versions HOT 12
- Functioning for Ionic 3 / 4 ? HOT 2
- Accordion HOT 1
- can't run your code sample HOT 1
- After installing my solution does not build for android
- .ion-alpha-scroll height increases ! HOT 9
- Error running in production mode HOT 4
- The height of the element keeps increasing HOT 7
- MapToIterable Exception HOT 7
- alpha scroll in a segment HOT 2
- ion-alpha-scroll error when 'ionic build android' HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ionic2-alpha-scroll.