Check for duplicates
Description
There are 2 issues with tooltip text wrapping logic:
- It doesn't respect limit if line has long word. Limit gets overwritten by longest word, which creates inconsistent tooltip width and may lead to tooltip width getting beyond screen width
- It has flawed logic for treating text containing new lines leading to inconsistent wrapping between these defined lines (better explained on screenshot 2)
Reproduction steps
- Programatically add tooltip text with long word (Not sure if long words may occur in simple Blockly, but developers are free to use setTooltip api on blocks, for example)
Priority
Very minor issue, but an issue nonetheless
Stack trace
Screenshots
- Long single word example
- Inconsistent wrapping with text that has new lines
Browsers
No response
Check for duplicates
Description
There are 2 issues with tooltip text wrapping logic:
Reproduction steps
Priority
Very minor issue, but an issue nonetheless
Stack trace
Screenshots
Browsers
No response