question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Note size is not scaled to be at least as long as the text length (font dependent)

See original GitHub issue

Describe the bug Text sometimes overflows the boundaries of the Note box behind it.

To Reproduce Steps to reproduce the behavior:

sequenceDiagram
  accTitle:  playback
  accDescr: Sequence diagram
participant PE
participant ESX Player
Note over PE, ESX Player: Video/audio config can change during play
opt New video frames will be a different configuration
    PE->>ESX Player: ConfigureVideo()
end
opt New audio frames will be a different configuration
    PE->>ESX Player: ConfigureAudio()
end
Note right of ESX Player: Frames requested & appended in parallel
loop Play
    opt If buffer reaches maximum while playing
        ESX Player->>PE: OnEnoughFrames()
    end
    activate ESX Player
    ESX Player->>ESX Player: Play buffered frames
    ESX Player->>PE: CurrentTimeUpdated.Emit()
    deactivate ESX Player
end

Expected behavior A Note should adjust it’s width to at least the width of the text give to it

Screenshots If applicable, add screenshots to help explain your problem. Screen Shot 2022-11-04 at 4 05 19 PM

Desktop (please complete the following information):

mmdc ran in Docker image ‘pandoc/latex:2.18-ubuntu’ with custom entrypoint script that installs npm install @mermaid/mermaid-cli

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

Format text in the Notes pane - Microsoft Support
On the Home tab, in the Font group, choose the font size you want. By default, the font size is 12 points. Change...
Read more >
css - Font scaling based on width of container - Stack Overflow
This would put the text size at the same size it would have been had the "width" of the original 50% container been...
Read more >
font-size | CSS-Tricks
The font-size property specifies the size, or height, of the font. font-size affects not only the font to which it is applied, but...
Read more >
Resize text layers – Figma Help Center
We recommend changing the size of a text layer by adjusting the Font size to ensure whole numbers. Select the Scale tool in...
Read more >
How do I change the font size for text in my figure? - MathWorks
I'm using "set(gca,'fontsize', 18);" in a function to change fonts in a figure. My code does not throw an error, but it also...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found