Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev2.5.18 limit caption lines to 2 #212

Open
wants to merge 3 commits into
base: test_showdiff_limitCaptionHeight
Choose a base branch
from

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
@sonarcloud
Copy link

sonarcloud bot commented Jun 18, 2023

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