Line-height breaks placeholders
Preflight Checklist
- [x] I agree to follow the Code of Conduct that this project adheres to.
- [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Describe the bug
When using line-height or another style property with percentage sign, placeholders don't work anymore.
Or, percentage signs in style attributes should be ignored for placeholders.
To Reproduce Steps to reproduce the behavior:
- create text node with
%test% Ctrl+mand add propertytestwith any value to your liking, make sure to check "placeholders" checkbox. Click Apply- Placeholder work for now.
- Double click text box, to select. Then single click to deselect but keep cursor.
- In text properties, adjust
line height. - Placeholder now breaks (only
%test%is shown)
Workaround:
- Extra -> Edit Diagram ...
- Replace the set line-height (which has a percentage value), with a value defined as
pxorpt. Ok- Placeholder works again.
Expected behavior Placeholder should have been replaced.
draw.io version
- draw.io version 15.1.3 on linux desktop and 15.3.4 on chromium
Desktop (please complete the following information):
- OS: Linux
- Browser Chromium
- Version 93.0.4577.82
Quick workaround for the GUI: change line-height from percentage to a unitless value. (Which is apparently preferred way according to MDN)
Thanks for the report. This will be fixed in the next release.
In 15.4.1
That was fast, thanks!