Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 359112

Summary: Connection text decorator's direct editing box size is not accurate when the text is removed
Product: [Modeling] Graphiti Reporter: Shenxue Zhou <shenxue.zhou>
Component: CoreAssignee: Michael Wenz <michael.wenz>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: konstantin, matthias.gorning, michael.wenz
Version: 0.8.0Flags: michael.wenz: juno+
Target Milestone: 0.9.0   
Hardware: All   
OS: All   
Whiteboard: Juno M3 theme_bugs

Description Shenxue Zhou CLA 2011-09-27 12:56:04 EDT

    
Comment 1 Shenxue Zhou CLA 2011-09-27 13:01:19 EDT
In my direct edit feature, I override stretchFieldToFitText() to return "true". The size of the direct-editing box is mostly accurate: it expands and shrinks according the text size. However, if the text is removed, the direct-editing text cell jumps to a pre-fixed width which is much wider than what's needed.
Comment 2 Michael Wenz CLA 2011-09-29 09:25:08 EDT
Fixed in head and pushed to Eclipse:
commit 7175d493ca906d11256e2955f5bc0363796da8ad
Author: mwenz <michael.wenz@sap.com> 2011-09-29 15:23:05
Committer: mwenz <michael.wenz@sap.com> 2011-09-29 15:23:35
Parent: 11e3ddb8e2d0d73d2138942451fa7d196d70acfc (cleanup)
Branches: master
Comment 3 Michael Wenz CLA 2012-04-11 10:41:19 EDT
Bookkeeping: Set target release
Comment 4 Michael Wenz CLA 2012-06-28 10:46:36 EDT
Part of Graphiti 0.9.0 (Eclipse Juno)