Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting of UML file changed after re-opening, boxes larger than when saved #733

Open
lemtronix opened this issue Sep 18, 2023 · 2 comments

Comments

@lemtronix
Copy link

lemtronix commented Sep 18, 2023

What's the Issue?
When I save and re-open a UXF file, the formatting of boxes are larger than when I saved the file. There's additional padding around the boxes. I'm also not able to readjust the size of the box to match the default size.

Sometimes the file opens as expected, sometimes there's the additional padding.

Setup

  • UMLet v15.1
  • openjdk 17.0.7 2023-04-18
    image
  • Windows 10
    image

Expected Behavior
Box when the file was saved:
image

Actual Behavior
Box when the file was re-opened:
image

After trying to reformat the box, I'm not able to get it back to the original size:
image

@afdia
Copy link
Collaborator

afdia commented Sep 18, 2023

That sounds weird, do you have a way to reproduce the issue or an example uxf file which contains the issue?

Other than manual uxf manipulation e.g. via texteditor (which can break coordinates and sizes), I can only remember some issues with zooming. Maybe it has to do with zooming in/out?
"Correct elements" should always be on the grid (so at 100% zoom every 10px can be used, at 80% zoom every 8px can be used, ...)

Or is it an old uxf file? I guess several years ago, Umlet had issues with coordinates (zooming broke them in some cases as far as I remember). I would be surprised if they could still happen, but back then usually broken elements should settle after some zoom in/out steps.

@lemtronix
Copy link
Author

lemtronix commented Sep 26, 2023

I think I've figured out a way to recreate the issue. I have UXF files associated with opening in UMLet. When I double click on the UXF file, sometimes UMLet doesn't open.
image

I then manually open UMLet via the Windows start menu. When the application opens, the file I tried to open by double clicking is opened and the formatting is incorrect.
image

I've experienced this with a file that I created in v15.1 and I haven't upgraded UMLet.

Here's a snapshot of regedit for .uxf files in case that's useful.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants