Skip to content

Dev2.5.18 limit caption lines to 2#212

Open
hiroshisuga wants to merge 3 commits intotest_showdiff_limitCaptionHeightfrom
dev2.5.18_limitCaptionLines
Open

Dev2.5.18 limit caption lines to 2#212
hiroshisuga wants to merge 3 commits intotest_showdiff_limitCaptionHeightfrom
dev2.5.18_limitCaptionLines

Conversation

@hiroshisuga
Copy link
Owner

@hiroshisuga hiroshisuga commented Jun 14, 2023

What does this PR do?

Limit the max size of the caption window to 2 lines in most of the case. But It can be three or four, depending on how fast you speak.
It reads the size of the caption box from the previous rendering. So it is possible to get a very large caption box when suddenly get a loong sentence. Translation might be the case.
#216 is essential.
Showing avatar commit (already merged in #203 and #201) should also be merged together with this PR.

Closes Issue(s)

Closes #

Motivation

More

  • Added/updated documentation

After some search I've found that the line-height are set "normal", which seems 1.2 for western fonts but 1.5 for Japanese fonts. So I set 1.3. We need to set this anyway, otherwise the calculation of max-height of the caption window is not possible.
hiroshisuga added a commit that referenced this pull request Jun 18, 2023
remove minHeight for correct 2-line limitation in #212
hiroshisuga added a commit that referenced this pull request Jun 18, 2023
remove minHeight for correct 2-line limitation in #212
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant