drawio-desktop icon indicating copy to clipboard operation
drawio-desktop copied to clipboard

Adding new text on an object and immediately change the font size remove the text

Open dev-mansonthomas opened this issue 1 year ago • 5 comments

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.

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.

Describe the bug On any object (custom icon, library icon, arrows), adding text for the first time (not editing the current text) and immediately changing the font size lead in the removal of the text just entered before.

To Reproduce

  1. Add an icon that do not have text description
  2. double click to enter description edit mode
  3. Add text
  4. Immediatly change the font size, either with the arrows, or type a new font size
  5. ==> the text entered in step 3 is removed

Expected behavior the expected behaviour is to keep the text entered in step 3 and change the font accordingly

Screenshots See video hosted on GDrive (too large for github 10MB) : https://drive.google.com/file/d/1l_hx9GUMg5VGOpFWjzS6XgO9rd9G95yc/view?usp=sharing

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version diagrams.net 21.2.1

Desktop (please complete the following information):

  • OS: MacOs X / intel

image

Additional context We're good :)

dev-mansonthomas avatar Apr 27 '23 22:04 dev-mansonthomas

Is 'text-overflow' set to hidden?

HiL0op avatar May 01 '23 22:05 HiL0op

Hi, By default it's set to visible. It looks like it's an UI thing, as, as soon as I change the font the current menu change to the "Style" menu. I've tried with text-overflow hidden, block, fill, same behaviour.

See here : https://drive.google.com/file/d/1YL0dNGxM2Vuv_Ty6Vt2Gs7xDaBWs3eaO/view?usp=sharing

dev-mansonthomas avatar May 02 '23 07:05 dev-mansonthomas

It seems as though you are beyond this in troubleshooting but the other more obvious reason would be the shape type.

HiL0op avatar May 02 '23 18:05 HiL0op

Well, here it's a PNG pasted in DrawIO, which is something I use a lot, since there's a lot of stuff that is not in the default libraries.

If you try with basic shapes such as rectangle, or more elaborated, like AWS icon, you're blocked from changing the text size (you can see the number going from 12 to 13 and be reverted back to 12....), which is also a bug for me.

==> We should be able to edit the text size right away, otherwise, we loose time.

dev-mansonthomas avatar May 02 '23 19:05 dev-mansonthomas