feat:fix ListView's auto resize height in iOS

This commit is contained in:
pengfei.zhou
2019-11-16 15:10:21 +08:00
parent 1d5b312922
commit db55cb30fb
7 changed files with 80 additions and 28 deletions

View File

@@ -32,8 +32,8 @@ class ListPanel extends Panel {
heightSpec: LayoutSpec.WRAP_CONTENT,
margin: {
left: 10,
right: 10,
top: 10,
right: 50,
top: 50,
bottom: 10,
},
},
@@ -48,7 +48,7 @@ class ListPanel extends Panel {
widthSpec: LayoutSpec.AT_MOST,
heightSpec: LayoutSpec.EXACTLY,
}
it.height = 50
it.height = 100
it.onClick = () => {
log(`Click item at ${idx}`)
it.bgColor = Color.parse('#000000')