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

vertailAlign does not default on new edges

Open megamorphg opened this issue 3 years ago • 2 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 A clear and concise description of what the bug is.

Style parameter "verticalAlign=bottom" does not default on new edges after clicking Set as Default Style on an edge with this set.

To Reproduce Steps to reproduce the behavior:

  1. Create an edge and set Bottom Text parameter aka "verticalAlign=bottom" parameter: image
  2. Go to Style tab and click Set as Default Style
  3. Create a new edge and observe that the edge does not start with this parameter

Expected behavior A clear and concise description of what you expected to happen.

In step #3, new edge should already have the default verticalAlign parameter.

Screenshots If applicable, add screenshots to help explain your problem.

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

  • draw.io version 19.0.0

Desktop (please complete the following information):

  • OS: Windows, MacOS, Linux... Windows

Additional context Add any other context about the problem here. This is an important default setting because normally people like to have any text on arrows above the arrow/edge ("verticalAlign=bottom") and not through the edge itself.

megamorphg avatar Jun 06 '22 16:06 megamorphg

Not all style changes are written in the default style. This was a design decision and for some styles it is questionable whether they should go in or not.

egrimate avatar Jun 08 '22 12:06 egrimate

@egrimate it would be nice to have this added to default style.

We can't hard-code it because I checked other systems have the text go through the middle of the arrow (Visio and Lucid Charts for instance) so it would be inconsistent...

However, it makes no sense to me to have text go in the middle of an edge since I draw pretty small arrows.

megamorphg avatar Jun 08 '22 14:06 megamorphg

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 14:03 stale[bot]