Skip to content

Fixed problem with ListView in ios when CustomTemplate is used. #277

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

Merged
merged 1 commit into from
Jun 7, 2016

Conversation

nsndeck
Copy link
Contributor

@nsndeck nsndeck commented Jun 7, 2016

When custom template is used in angular ListView, a ProxyViewContainer, from custom template, is silently wrapped in a StackLayout which results in an incorrect view to store related angular EmbeddedView reference.

template: `
<GridLayout rows="auto, *, auto, auto">
<Label row="0" text="-==START==-" fontSize="20"></Label>
<GridLayout row="1">
<ListView [items]="myItems" (itemTap)="onItemTap($event)">
<template let-item="item" let-i="index" let-odd="odd" let-even="even">
<StackLayout [class.odd]="odd" [class.even]="even">
<!--<StackLayout [class.odd]="odd" [class.even]="even">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider deleting the commented out portion of the template.

@nsndeck nsndeck force-pushed the nnikolov/ListViewCustomTemplateFix branch from 15034e8 to b5732a5 Compare June 7, 2016 11:57
@nsndeck nsndeck merged commit ab3ff84 into master Jun 7, 2016
@nsndeck nsndeck deleted the nnikolov/ListViewCustomTemplateFix branch June 7, 2016 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants