Comments (9)
Thanks for letting me know and sorry for the delay I went to a friends wedding this weekend. I haven't updated this component for Ionic 2 RC0 so it is possible that is why you are experiencing this. I'll look into it this week.
from ionic2-alpha-scroll.
Hi!
No problem ! But i don't know if it's because of ionic 2 RC or if I'm not using it in a proper way :s
Thanks for checking on it, and I'll let you know if I find something as well ;)
from ionic2-alpha-scroll.
ok I found something.
I have a <ion-searchbar></ion-searchbar>
just above the list inside the ion-content.
It doesn't work with this search bar, but it works when I remove it. :(
EDIT:
it doesn't seem to be the search bar directly. If I put a margin-top on the ion-alpha-scroll. it starts to fail. Otherwise it works. I guess it's a calculation thing.
.ion-alpha-scroll {
margin-top: 60px;
}
from ionic2-alpha-scroll.
ok so far I found a quick trick, but I don't think it's optimal.
The problem is because I tried to put another thing inside the <ion-content>
So, to avoid that and keep the alpha-scroll alone, I added an <ion-header-bar>
BEFORE the <ion-content>
, and I calculate the new size of the content at load.
It works but I think there's something in the plugin calculation which causes that if there's another element inside the <ion-content>
.
Julian
from ionic2-alpha-scroll.
Hey I haven't forgot about this but I've been so busy lately. Also I'm trying to get a personal app updated from Ionic 2 beta 11 to RC0 and it has been a real pain so far. I've only had about an hour to commit to the upgrade but once I'm done I'll be on this issue.
Thanks.
from ionic2-alpha-scroll.
I tried to edit below lines in ion-alpha-scroll.js, and the problem fixed, see if it works for you.
*Changed height: dimensions.scrollHeight + 'px'
to height: dimensions.contentHeight + 'px'
//line 62
IonAlphaScroll.prototype.calculateScrollDimensions = function () {
var dimensions = this._content.getContentDimensions();
return {
height: dimensions.contentHeight + 'px',
width: (dimensions.contentWidth - 20) + 'px'
};
};
from ionic2-alpha-scroll.
@piuen0 Thanks I'll take a look. I know the latest rc.4 brought some changes with it that has broken this component again :~(
from ionic2-alpha-scroll.
@rossmartin Thanks for your effort to build this repo! This is useful
from ionic2-alpha-scroll.
This is solved via 26a4fae
from ionic2-alpha-scroll.
Related Issues (20)
- Update for use with Ionic 2/Angular 2 Release Versions HOT 12
- 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
- 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
- Problem with ion-refresher and ion-alpha-scroll HOT 1
- 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
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.