zhenghy

视频折叠屏适配

... ... @@ -212,13 +212,13 @@ export struct DetailPlayShortVideoPage {
let width = rect.width
let height = rect.height
if (this.displayDirection === DisplayDirection.VERTICAL) {
width = rect.width
height = rect.height
} else {
width = rect.height
height = rect.width
}
// if (this.displayDirection === DisplayDirection.VERTICAL) {
width = rect.width
height = rect.height
// } else {
// width = rect.height
// height = rect.width
// }
// 视频宽高比屏幕大,则宽度撑满
if (this.ratio > width / height) {
this.playerWidth = '100%'
... ...