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
xugenyuan
2024-10-28 21:20:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c0cd407bc9f2b555c1c36128c03ff3a446e085fa
c0cd407b
1 parent
61509b8d
fix |> 横屏视频切换横屏后不能展示全屏区域的视频
Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
Hide 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 @
c0cd407
...
...
@@ -301,11 +301,11 @@ export struct DetailPlayShortVideoPage {
// 视频宽高比屏幕大,则宽度撑满
//console.log(`cj2024 ratio = ${this.ratio} width / height = ${width / height}`)
if (this.ratio > width / height) {
this.playerWidth =
'100%'
this.playerWidth =
px2vp(width)
this.playerHeight = px2vp(width / this.ratio)
} else {
// 否则高度撑满
this.playerHeight =
'100%'
this.playerHeight =
px2vp(height)
this.playerWidth = px2vp(height * this.ratio)
}
//console.log('cj2024 calculatePlayerRect=====', width, height,px2vp(this.windowHeight),this.playerHeight)
...
...
Please
register
or
login
to post a comment