Skip to content

"sticky" in ion-item-divider doesn't work if placed inside VirtualScroll #9453

@gigocabrera

Description

@gigocabrera

Ionic version: (check one with "x")
[] 1.x
[x] 2.x

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request

Current behavior:

The sticky property in an ion-item-divider doesn't work if it is inside an ion-list with [virtualScroll]. If works fine if it lives inside a plain ion-list component (like in the schedule page in ionic-conference-app)

Expected behavior:

The sticky property in an ion-item-divider should behave the same regardless if it lives inside a plain ion-list or an ion-list with [virtualScroll]

Steps to reproduce:

Take for example the code from the official documentation and add the sticky property to the ion-item-divider as shown below. The divider won't stick in iOS device

<ion-list [virtualScroll]="items" [headerFn]="myHeaderFn">

  <ion-item-divider sticky *virtualHeader="let header">
    Header: {{ header }}
  </ion-item-divider>

  <ion-item *virtualItem="let item">
    Item: {{ item }}
  </ion-item>

</ion-list>

Ionic info:

Your system information:

Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.1.13
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.46
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.7.0
Xcode version: Not installed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions