Bug 389366 - Widgets are randomly resized when opening a saved diagram
Summary: Widgets are randomly resized when opening a saved diagram
Status: RESOLVED WORKSFORME
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 2.23.3 (KDE Applications 17.08.3)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-24 09:59 UTC by Robert Hairgrove
Modified: 2022-12-15 05:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Hairgrove 2018-01-24 09:59:42 UTC
First of all, it is very nice to have the grid and the alignment features for widgets. However, there seems to be no easy way to make similar widgets all the same size, so I do this manually.

But after I save the file and reopen it, Umbrello has changed the widths of some widgets seemingly at random. This is very frustrating, to say the least!

Also, when resizing a widget, I have to grab the lower left corner, although most often I only need to drag one of the edges. Working on a laptop, it is difficult to resize just one edge at a time. And it would be nice if the resizing function would also obey the grid.
Comment 1 Robert Hairgrove 2018-01-24 10:01:13 UTC
...should be "lower RIGHT corner", of course.
Comment 2 Ralf Habacker 2018-01-28 17:00:03 UTC
(In reply to Robert Hairgrove from comment #0)
> And it would be nice if the resizing function would also obey the grid.
In the diagram property page there is a checkbox "snap component size" exactly for this purpose.

I adding several widgets with this checkbox avtivated, saved as xmi file file, reload it without any issue. Can you confirm ?
Comment 3 Robert Hairgrove 2018-01-28 22:52:34 UTC
Thanks for the tip about sizing ... strange that this option is missing from the main menu, that it is necessary to open the dialog to find it.

I tried making a very simple case with a package, four classes and four links to the package. I saved it, opened it again and saved the file without making any changes to a new file name.

Although I couldn't see any difference by just looking at the screen, I ran the GNU `diff` command on them. There were a few differences in the following lines:

    (file 1): <startpoint starty="-475" startx="-1552"/>
    (file 2): <startpoint starty="-475" startx="-1550"/>

and 

    (file 1): <diagram canvaswidth="375" [...]>
    (file 2): <diagram canvaswidth="350" [...]>

In the Umbrello configuration, I noticed the option for "Auto Layout", which was selected. Could this have anything to do with unwanted changes?

I had a much more complicated layout which had difficulty with resizing. Maybe I can duplicate it in a test case.
Comment 4 Robert Hairgrove 2018-01-28 22:57:45 UTC
I'm thinking there must be rounding errors somewhere in the code. It's strange that Umbrello would change anything at all in the XMI file for a diagram that was not changed by the user (except for things like the timestamp, etc.)
Comment 5 Ralf Habacker 2018-01-29 09:03:29 UTC
(In reply to Robert Hairgrove from comment #3)
> Thanks for the tip about sizing ... strange that this option is missing from
> the main menu, that it is necessary to open the dialog to find it.
please file a feature request 
> I tried making a very simple case with a package, four classes and four
> links to the package. I saved it, opened it again and saved the file without
> making any changes to a new file name.
> 
> Although I couldn't see any difference by just looking at the screen, I ran
> the GNU `diff` command on them. There were a few differences in the
> following lines:
> 
>     (file 1): <startpoint starty="-475" startx="-1552"/>
>     (file 2): <startpoint starty="-475" startx="-1550"/>
> 
> and 
> 
>     (file 1): <diagram canvaswidth="375" [...]>
>     (file 2): <diagram canvaswidth="350" [...]>

You did that on the same machine and the same monitor ? stable umbrello versions currently saves files with coordinates/widget sizes based on the used monitor dpi (see bug 90103)

> In the Umbrello configuration, I noticed the option for "Auto Layout", which
> was selected. Could this have anything to do with unwanted changes?
no, these settings only enables the search for dot excutable by default. Auto layouts are applied only manual.
Comment 6 Justin Zobel 2022-11-15 22:58:48 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 7 Bug Janitor Service 2022-11-30 05:14:51 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2022-12-15 05:14:58 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!