Bug 403516

Summary: Size of classes and components are stable rise after saving/loading file
Product: [Applications] umbrello Reporter: sggdev.im
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: REPORTED ---    
Severity: normal CC: ralf.habacker
Priority: NOR    
Version: 2.27.1 (KDE Applications 18.12.1)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description sggdev.im 2019-01-22 20:42:28 UTC
SUMMARY
Size of classes and components are stable rise after saving/loading file even auto resizing option is off. Seems the list of methods for class is wrong (bigger than real) at loading, but then (after redrawing) rebuilding correctly. The problem is appearing just in Linux version.

STEPS TO REPRODUCE
1. Create diagram (class or component)
2. Add class/component, add name. Set off for auto-resize option.
3. Save file
4. Close Umbrello
5. Open Umbrello
6. Open file

OBSERVED RESULT
Size of classes and components are rise proportionally to number of lines in widget.

EXPECTED RESULT
Size of classes and components are the same as at moment of saving.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: OpenSuse Tumbleweed
Qt Version: 5.12

ADDITIONAL INFORMATION
Comment 1 Ralf Habacker 2019-01-24 15:23:13 UTC
Thanks for the report. 

This problem is caused by an incomplete implementation of ClassifierWidget::minimumSize(). This function currently only supports the "auto resize" mode and would need to be implemented for the other case as well e.g.