Showing
1 changed file
with
7 additions
and
7 deletions
| @@ -212,13 +212,13 @@ export struct DetailPlayShortVideoPage { | @@ -212,13 +212,13 @@ export struct DetailPlayShortVideoPage { | ||
| 212 | 212 | ||
| 213 | let width = rect.width | 213 | let width = rect.width |
| 214 | let height = rect.height | 214 | let height = rect.height |
| 215 | - if (this.displayDirection === DisplayDirection.VERTICAL) { | ||
| 216 | - width = rect.width | ||
| 217 | - height = rect.height | ||
| 218 | - } else { | ||
| 219 | - width = rect.height | ||
| 220 | - height = rect.width | ||
| 221 | - } | 215 | + // if (this.displayDirection === DisplayDirection.VERTICAL) { |
| 216 | + width = rect.width | ||
| 217 | + height = rect.height | ||
| 218 | + // } else { | ||
| 219 | + // width = rect.height | ||
| 220 | + // height = rect.width | ||
| 221 | + // } | ||
| 222 | // 视频宽高比屏幕大,则宽度撑满 | 222 | // 视频宽高比屏幕大,则宽度撑满 |
| 223 | if (this.ratio > width / height) { | 223 | if (this.ratio > width / height) { |
| 224 | this.playerWidth = '100%' | 224 | this.playerWidth = '100%' |
-
Please register or login to post a comment