chenjun

滚动条不显示与安卓保持一致

... ... @@ -51,9 +51,10 @@ export struct DetailDialog {
.margin({ top: 8, bottom: 8 })
}
.alignItems(HorizontalAlign.Start)
.margin({right:4})
//.margin({right:4})
}
.scrollBar(BarState.Off) //安卓不显示滚动条
.height(200)
Row() {
... ... @@ -80,7 +81,7 @@ export struct DetailDialog {
top: 20,
bottom: 30,
left: 16,
right: 12 //给滚动条预留4像素
right: 16 //给滚动条预留4像素
})
}
... ...