chenjun

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

@@ -51,9 +51,10 @@ export struct DetailDialog { @@ -51,9 +51,10 @@ export struct DetailDialog {
51 .margin({ top: 8, bottom: 8 }) 51 .margin({ top: 8, bottom: 8 })
52 } 52 }
53 .alignItems(HorizontalAlign.Start) 53 .alignItems(HorizontalAlign.Start)
54 - .margin({right:4}) 54 + //.margin({right:4})
55 55
56 } 56 }
  57 + .scrollBar(BarState.Off) //安卓不显示滚动条
57 .height(200) 58 .height(200)
58 59
59 Row() { 60 Row() {
@@ -80,7 +81,7 @@ export struct DetailDialog { @@ -80,7 +81,7 @@ export struct DetailDialog {
80 top: 20, 81 top: 20,
81 bottom: 30, 82 bottom: 30,
82 left: 16, 83 left: 16,
83 - right: 12 //给滚动条预留4像素 84 + right: 16 //给滚动条预留4像素
84 }) 85 })
85 86
86 } 87 }