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

Issue with text spacing and alignment.

Open bt-tech-dd opened this issue 4 years ago • 6 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.

Describe the bug When aligning text to top, the spacing affects it differently than when aligning text to bottom.

To Reproduce Steps to reproduce the behavior:

  1. Create two text boxes
  2. Select one text box and align to bottom
  3. Select the other text box and align to top
  4. Notice the difference in spacing

Expected behavior The spacing between the top of the text and the top of the text box that was aligned to the top should be the same as the spacing between the bottom of the text and the bottom of the text box that was aligned to the bottom.

Screenshots Screenshot 2021-02-25 135924

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

  • diagrams.net 14.4.3

Desktop (please complete the following information):

  • OS: Microsoft Windows 10 Version 2004 (OS Build 19041.804)

Additional context Add any other context about the problem here.

bt-tech-dd avatar Feb 25 '21 19:02 bt-tech-dd

Hi,

so you experimented with Spacing in Text tab when text box is selected. Could you copy/paste code for both text boxes please? Select one and click Ctrl+e and do the same for the 2nd box.

Thanks,

mararad avatar Mar 01 '21 10:03 mararad

This is the code for the 1st text box: text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;

This is the code for the 2nd text box: text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;

The issue is still present when I remove all code from the text boxes as well.

Are you not seeing this issue when you try to replicate it yourself?

bt-tech-dd avatar Mar 02 '21 13:03 bt-tech-dd

This bug is still present in version 15.8.7.

bt-tech-dd avatar Dec 02 '21 16:12 bt-tech-dd

The label used to test with should include the highest ascending character in that font family.

davidjgraph avatar Dec 02 '21 17:12 davidjgraph

New test with all characters image

This is the style window of the top aligned text box image

This is the style window of the bottom aligned text box image

bt-tech-dd avatar Dec 02 '21 17:12 bt-tech-dd

This bug is still present in 17.2.4.

bt-tech-dd avatar Mar 29 '22 17:03 bt-tech-dd

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.

stale[bot] avatar Mar 25 '23 15:03 stale[bot]