Skip to content

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

Merged
nsndeck merged 1 commit into
masterfrom
nnikolov/ListViewCustomTemplateFix
Jun 7, 2016
Merged

nsndeck merged 1 commit into
masterfrom
nnikolov/ListViewCustomTemplateFix

Conversation

@nsndeck

@nsndeck nsndeck commented Jun 7, 2016

Copy link
Copy Markdown
Contributor

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.

<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
Copy Markdown
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