Showing
1 changed file
with
7 additions
and
3 deletions
| @@ -13,7 +13,6 @@ export struct DetailDialog { | @@ -13,7 +13,6 @@ export struct DetailDialog { | ||
| 13 | build() { | 13 | build() { |
| 14 | 14 | ||
| 15 | Column() { | 15 | Column() { |
| 16 | - Scroll() { | ||
| 17 | Column() { | 16 | Column() { |
| 18 | if (this.name) { | 17 | if (this.name) { |
| 19 | Text(`@${this.name}`) | 18 | Text(`@${this.name}`) |
| @@ -23,7 +22,10 @@ export struct DetailDialog { | @@ -23,7 +22,10 @@ export struct DetailDialog { | ||
| 23 | .lineHeight(17) | 22 | .lineHeight(17) |
| 24 | .margin({ top: 8 }) | 23 | .margin({ top: 8 }) |
| 25 | } | 24 | } |
| 26 | - | 25 | + } |
| 26 | + .alignItems(HorizontalAlign.Start) | ||
| 27 | + Scroll() { | ||
| 28 | + Column() { | ||
| 27 | if (this.title) { | 29 | if (this.title) { |
| 28 | Text(this.title) | 30 | Text(this.title) |
| 29 | .fontColor(Color.White) | 31 | .fontColor(Color.White) |
| @@ -55,7 +57,9 @@ export struct DetailDialog { | @@ -55,7 +57,9 @@ export struct DetailDialog { | ||
| 55 | 57 | ||
| 56 | } | 58 | } |
| 57 | .scrollBar(BarState.Off) //安卓不显示滚动条 | 59 | .scrollBar(BarState.Off) //安卓不显示滚动条 |
| 58 | - .height(200) | 60 | + .constraintSize({ |
| 61 | + maxHeight: 200 | ||
| 62 | + }) | ||
| 59 | 63 | ||
| 60 | Row() { | 64 | Row() { |
| 61 | Image($r("app.media.icon_arrow_left_white")) | 65 | Image($r("app.media.icon_arrow_left_white")) |
-
Please register or login to post a comment