Coder Social home page Coder Social logo

Comments (9)

rossmartin avatar rossmartin commented on May 23, 2024

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.

julianlecalvez avatar julianlecalvez commented on May 23, 2024

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.

julianlecalvez avatar julianlecalvez commented on May 23, 2024

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.

julianlecalvez avatar julianlecalvez commented on May 23, 2024

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.

rossmartin avatar rossmartin commented on May 23, 2024

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.

piuen0 avatar piuen0 commented on May 23, 2024

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.

rossmartin avatar rossmartin commented on May 23, 2024

@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.

piuen0 avatar piuen0 commented on May 23, 2024

@rossmartin Thanks for your effort to build this repo! This is useful

from ionic2-alpha-scroll.

rossmartin avatar rossmartin commented on May 23, 2024

This is solved via 26a4fae

from ionic2-alpha-scroll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.