Bug #39887 Text Object doesn't auto re-size
Submitted: 6 Oct 2008 15:29 Modified: 5 Aug 2009 15:12
Reporter: Dan Walton Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.0.25 r3427 OS:Windows (XP SP3)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: CHECKED, Re-size, Text Object

[6 Oct 2008 15:29] Dan Walton
Description:
Text objects will not always re-size on edit.

How to repeat:
* Place a new text object to your EER Diagram.
* Add some text.
* Click anywhere else on your diagram (to deselect the text object).
* Click the text object. Wait for, and attempt to move it using one of, the black filled handles. (moving the element by clicking and hodling anywhere within its body will not cause this bug)
* Add enough more text to cause the expected auto resizing. You should see your text overflow the elements outer edge and disappear.

Suggested fix:
I believe, although the handles are filled black, that the program runs some kind of re-size routine (as indicated when "Align to grid" is checked - the element tries to re-size to the nearest grid!) that fails, and corrupts the elements dimensions or properties somehow.
[6 Oct 2008 15:33] Dan Walton
On this object, "ha" should read "happen" :)

Attachment: overflow.png (image/png, text), 994 bytes.

[6 Oct 2008 17:31] Valeriy Kravchuk
Thank you for a bug report. Verified just as described.
[8 Oct 2008 8:58] Johannes Taxacher
Looks like the model-figure-property "manualSizing" is set to true when objects are modified via handles.  This is expected for objects that can be resized manually, but should not be triggered for objects that are auto-size only (like the TextBoxes).

As workaround - until we fix this - go to the properties pane (lower right of WB window) while the corresponding textbox is selected and set the property "manualSizing" back to "False".
[5 Aug 2009 9:29] Johannes Taxacher
this has been improved and will be included in 5.1.17

note for docs: text-notes on canvas are now resizable by grabbing the "handles" that appear when object is selected. 
like for table-figures, a manual modification of the figure-size sets the "manualSizing" attribute of the textnote (can be checked/set in property pane) to true. which means that these text-note-objects only auto-expand on entering more text but the size isn't automatically reduced when text is removed or wrapped manually. By re-setting this property to false, the textbox-size is also automatically decreased to fit the containing text.
[5 Aug 2009 15:12] Tony Bedford
A 'change' entry has been added to the 5.1.17 changelog:

When a Text Object was placed on an EER Diagram it could not be resized and also did not appear to automatically resize correctly around any text typed in.

Text Objects on the EER Diagram canvas can now be resized by grabbing the sizing handles that appear when the object is selected. As with Table Objects, a manual modification of the object sets the manualSizing attribute of the Text Object to true. This property can also be set in the Properties pane. This means that these Text Objects automatically expand on entering more text, but the size isn't automatically reduced when text is removed or wrapped manually. By setting this property to false, the Text Object size is also automatically reduced to fit the containing text.