NativeScript / NativeScript/plugins

[nativescript-ui-listview] Only first item is displayed on iOS

未关闭
#352 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
TypeScript
星标
206
派生
123
平均合并
2 天 1 小时
30 天内合并 PR
1

描述

Reproduce:

Create a demo project using the official template
ns create my-master-detail-ng-demo --template @nativescript/template-master-detail-ng

Do not need to change anything, leave the project as it is.

Run it on iOS ns debug ios

Observe that only one car is displayed but the list seems to have the correct height and is able to scroll. However, when the device orientation changes, the list renders correctly and when the device changes back to its original orientation, the list still renders correctly.

The screen recording is too big to upload here, please refer to this video:
https://1drv.ms/v/s!AsQrVqY9DKK0g48gJ1chzNSsnrCvIQ?e=H0BF4e

Screenshots:
image
image
image

However, running it on Android has no such issue.

1483201666363003_ pic

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

使用官方的 @nativescript/template-master-detail-ng 模板重现该问题,然后运行 ns debug ios,并将初始渲染与方向更改时的行为进行比较。调查 nativescript-ui-listview 的 iOS 路径;完成的标准是所有列表项在首次启动时都能正确渲染,而不需要更改方向,同时 Android 不受影响。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, ios, typescript
领域
mobile
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。