Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wangliang_wd
2024-07-22 18:12:30 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b9564b270dfb2a230f8081372b6ec30723b1ae70
b9564b27
1 parent
19fabc90
feat:优化横屏视频转屏问题
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailPlayShortVideoPage.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailPlayShortVideoPage.ets
View file @
b9564b2
...
...
@@ -251,11 +251,11 @@ export struct DetailPlayShortVideoPage {
// 视频宽高比屏幕大,则宽度撑满
if (this.ratio > width / height) {
this.playerWidth = '100%'
this.playerHeight =
width / this.ratio
this.playerHeight =
px2vp(width / this.ratio)
} else {
// 否则高度撑满
this.playerHeight = '100%'
this.playerWidth =
height * this.ratio
this.playerWidth =
px2vp(height * this.ratio)
}
console.log('calculatePlayerRect=====', width, height)
...
...
Please
register
or
login
to post a comment