Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VirtualScroll last element at top in v2 #6961

Closed
lain-me opened this issue Jun 18, 2016 · 3 comments
Closed

VirtualScroll last element at top in v2 #6961

lain-me opened this issue Jun 18, 2016 · 3 comments
Assignees

Comments

@lain-me
Copy link

lain-me commented Jun 18, 2016

When list with virtual scroll is loaded last element is on top (if scrolled to bottom it disappears).

Plnkr here

@mpaland
Copy link

mpaland commented Jun 19, 2016

I can confirm this in v2beta9. I just haven't had this problem yet, cause I was always using a sliding item, like:

    <ion-item-sliding *virtualItem="let item">
      <ion-item>
        <ion-row class="item-row">
          <ion-col class="item-title" width-80>
            {{item.title}}
          </ion-col>
          <ion-col class="item-time" width-20>
            {{item.date}}
          </ion-col>
        </ion-row>
      </ion-item>
    </ion-item-sliding>

which is working fine.
So problem must be in virtual scroll together with a normal <ion-item>.

@jjmax75
Copy link

jjmax75 commented Jul 26, 2016

Following from @Ritzlgrmft on issue #7059 I have used this CSS to overcome this bug

ion-list > .item:first-child {
    z-index: 1;
  }

Works on web view and Android

@adamdbradley
Copy link
Contributor

Looks like this has been fixed in recent versions:
http://plnkr.co/edit/LjGFzBWPcD6j5sHtaVId?p=preview

And it probably comes down to the CSS wasn't being getting applied (by the framework, nothing developers were doing wrong). Thanks for the report!

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants