Bug #47368 manually resized objects loose their widths/heights when saved/reopened
Submitted: 16 Sep 2009 12:11 Modified: 25 Nov 2009 10:40
Reporter: Stas Trefilov Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.1.18 OS:MacOS (10.6.1)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: regression

[16 Sep 2009 12:11] Stas Trefilov
Description:
THIS IS NOT A DUPLICATE FOR #46806. this bug is introduced in 5.1.18

in my schema i have some tables that take very much horizontal space. just to fit these on a single page i need to manually contract them. this way i can only see a beginning of a field description, but the table fits well on a diagram. example: a table with ENUM field having about 40 possible values. to fit on a4 page in portrait mode it must be manually resized to actually show ~ 10 values.

when i open my wb schema now in 5.1.18 my previously resized tables now take full width and break all margins. if i resize tables and save/reopen the diagram, the tables are again automatically resized to fit all columns.

How to repeat:
1/ create new schema. add table. manually resize it to be of square form. note in
preferences tab that Manual Sizing is checked, Height is 400, Widths is 400 (you may have
other values)

2/ save model

3/ quit wb

4/ relaunch wb. the saved model will be reopened. you will notice that now your manually
resized table has its Widths/Height reset and occupies all the place needed for display of
columns content (as if it was an automatic layout, not manual). Manual Sizing is still
checked though.

Suggested fix:
restore tables sizes each time you open the diagram.
[16 Sep 2009 15:29] Valeriy Kravchuk
If you feel this bug is different, let it be so...

Verified just as described on Mac OS X. 

You meant "Properties tab" for the table, not "preferences tab" I believe.
[19 Sep 2009 16:33] Ian Mewin
WinXP XP3
I have been using WB for years.. since I have upgraded to .18 my EER Diagrams do not save my sizing. I have tried saving, closing, reopening a .mwb file and my diagrams are all re-sized.

I tried creating a new file and repeated the results:
create new .mwb
add new EER diagram
add table one
add columns
add table two
add columns
resize tables on diagram
save
close
reopen
tables are resized.
[19 Sep 2009 16:41] Ian Mewin
I Just tried selecting all tables on an EER and then clicked
MENU BAR: Arrange->Auto Size Objects
then save/close
reopen
and the sizing is retained.. 

but WILL NOT work if you manually resize the tables.
[19 Oct 2009 18:36] Geoffrey Hoffman
I can verify this also happens on 5.1.18 on Windows XP. It also happens with the height of the table in the EER diagram.
[26 Oct 2009 22:04] Michal Koscielny
I can confirm this bug on XP SP3. Table sizes on the diagram are not saved. This is quite a severe bug because it can create a lot of mess in more complicated database designs.

Can this bug be changed so that it does not say Mac OS X? It certainly is not limited to Mac.
[25 Nov 2009 10:40] Susanne Ebrecht
Many thanks to writing a bug report.

The described problem won't exist anymore in Workbench 5.2 and we won't fix this anymore in Workbench 5.1.