From 3c32d140f94bd5bc62f4a10b1b708fabbb280138 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 29 Aug 2019 21:51:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84listview?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ListViewV2Demo/assets/Script/ListViewFactory.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ListViewV2Demo/assets/Script/ListViewFactory.ts b/ListViewV2Demo/assets/Script/ListViewFactory.ts index 65747e2..417106a 100644 --- a/ListViewV2Demo/assets/Script/ListViewFactory.ts +++ b/ListViewV2Demo/assets/Script/ListViewFactory.ts @@ -53,6 +53,8 @@ export default class ListViewFactory extends cc.Component { }); //显示 this.listView.set_data(data); + this.scrollview.scrollToTop(); + this.scrollview.stopAutoScroll(); } update(dt) {