Open
fix: toast布局异常修复 #2
easy_ghfAdd on Feb 26
fix: toast布局异常修复 #2
Open
Total: 3 files changed+9-10
| @@ -45,7 +45,7 @@ function toast() { | |||
| 45 | left: $r('app.float.change'), | 45 | left: $r('app.float.change'), |
| 46 | right: $r('app.float.change') | 46 | right: $r('app.float.change') |
| 47 | }) | 47 | }) |
| 48 | - .margin({ top: $r('app.float.toast_margin_m') }) | 48 | + .margin({ bottom: $r('app.float.toast_margin') }) |
| 49 | .borderRadius($r('app.float.toast_border_radius')) | 49 | .borderRadius($r('app.float.toast_border_radius')) |
| 50 | .shadow({ | 50 | .shadow({ |
| 51 | radius: $r('app.float.shadow'), | 51 | radius: $r('app.float.shadow'), |
| @@ -339,7 +339,7 @@ struct SelectVerificationCode { | |||
| 339 | }, Constants.THREE_THOUSAND); | 339 | }, Constants.THREE_THOUSAND); |
| 340 | } | 340 | } |
| 341 | }) | 341 | }) |
| 342 | - | 342 | + Blank() |
| 343 | if (this.flag) { | 343 | if (this.flag) { |
| 344 | Text($r('app.string.verification_passed')) | 344 | Text($r('app.string.verification_passed')) |
| 345 | .opacity(this.opacitySuccess) | 345 | .opacity(this.opacitySuccess) |
| @@ -361,7 +361,8 @@ struct SelectVerificationCode { | |||
| 361 | md: $r('sys.float.padding_level12'), | 361 | md: $r('sys.float.padding_level12'), |
| 362 | lg: $r('sys.float.padding_level16') | 362 | lg: $r('sys.float.padding_level16') |
| 363 | }).getValue(this.curBp), | 363 | }).getValue(this.curBp), |
| 364 | - top: this.statusBarHeight | 364 | + top: this.statusBarHeight, |
| 365 | + bottom: this.navIndicatorHeight | ||
| 365 | }) | 366 | }) |
| 366 | .width(Constants.ONE_HUNDRED_PERCENT) | 367 | .width(Constants.ONE_HUNDRED_PERCENT) |
| 367 | .height(Constants.ONE_HUNDRED_PERCENT) | 368 | .height(Constants.ONE_HUNDRED_PERCENT) |
Mverificationcodescenariolibrary/src/main/ets/view/SliderVerificationCode.ets+4-2File content is under review, please try again later
| @@ -118,7 +118,7 @@ | |||
| 118 | }, | 118 | }, |
| 119 | { | 119 | { |
| 120 | "name": "toast_margin", | 120 | "name": "toast_margin", |
| 121 | - "value": "250vp" | 121 | + "value": "80vp" |
| 122 | }, | 122 | }, |
| 123 | { | 123 | { |
| 124 | "name": "toast_border_radius", | 124 | "name": "toast_border_radius", |
| @@ -128,10 +128,6 @@ | |||
| 128 | "name": "shadow", | 128 | "name": "shadow", |
| 129 | "value": "80vp" | 129 | "value": "80vp" |
| 130 | }, | 130 | }, |
| 131 | - { | ||
| 132 | - "name": "toast_margin_m", | ||
| 133 | - "value": "220vp" | ||
| 134 | - }, | ||
| 135 | { | 131 | { |
| 136 | "name": "change_margin", | 132 | "name": "change_margin", |
| 137 | "value": "8vp" | 133 | "value": "8vp" |