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
王士厅
2024-07-22 18:13:42 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
894771310e9b88ffb5fcd343adbd3af7dbaaf63a
89477131
2 parents
dd7dd9ba
b9564b27
Merge branch 'main' of
http://192.168.1.42/developOne/harmonyPool
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 @
8947713
...
...
@@ -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