drawio icon indicating copy to clipboard operation
drawio copied to clipboard

Incorrect table cell size when changing units to mm

Open FarSeeing opened this issue 10 months ago • 1 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.

If you are technical, you should reporting bugs along the lines of https://marker.io/blog/how-to-write-bug-report. If you are not technical, we will make allowances, please try to make an effort to understand the process.

Describe the bug When you change units to mm and start changing table cell size - the result is incorrect

To Reproduce Steps to reproduce the behavior:

  1. Go to https://app.diagrams.net/, create a diagram
  2. Add a table
  3. Select any table cell (see screenshot 1 - the width input has a value of 60pt)
  4. Switch units to mm (View - Units - Millimeters, see screeshot 2 - the width input now has a value of 15.2mm)
  5. Try changing table cell size (width/height) in the Arrange tab by clicking buttons next to the input
  6. See table cell sze jumping ( (see screenshot 3 - when decreasing width the value jumps to 3.8mm)

Expected behavior The table cell size is properly changed

Screenshots image image image

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

  • draw.io version 24.3.1

Desktop (please complete the following information):

  • OS: any
  • Browser any
  • Browser Version any

Smartphone (please complete the following information):

  • Device: any
  • OS: any
  • Browser any
  • Version any

I tested the problem in incognito/private mode with all browser extensions switched off, write "yes" below:

  • yes

Additional context Add any other context about the problem here.

FarSeeing avatar Apr 27 '24 08:04 FarSeeing

I beliven the issue is the missing fromUnit call for the value variable here (and the same should be added in heightUpdate)

FarSeeing avatar May 02 '24 08:05 FarSeeing

Fix in 24.4.6.

davidjgraph avatar May 22 '24 11:05 davidjgraph