Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
ww_audio_image
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
ww_audio_image
Commits
afeac0c0
Commit
afeac0c0
authored
Aug 19, 2020
by
liujiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
222
parent
1ae65122
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
play.component.ts
src/app/play/play.component.ts
+2
-1
No files found.
src/app/play/play.component.ts
View file @
afeac0c0
...
...
@@ -115,7 +115,7 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
}
calcPicHeight
()
{
if
(
this
.
data
.
contentObj
.
text
.
trim
())
{
if
(
this
.
data
.
contentObj
.
text
&&
this
.
data
.
contentObj
.
text
.
trim
())
{
const
textHeight
=
this
.
domText
.
nativeElement
.
clientHeight
;
const
delta
=
_
.
isEmpty
(
this
.
data
.
contentObj
.
text
)
?
0
:
40
;
this
.
domPic
.
nativeElement
.
style
.
height
=
`calc(100% -
${
textHeight
+
delta
}
px)`
;
...
...
@@ -150,6 +150,7 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
refresh
()
{
setTimeout
(()
=>
{
this
.
appRef
.
tick
();
this
.
calcPicHeight
();
},
1
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment