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

Bug 344022

Summary: [diagram] Label editor not aligned in default node presentation
Product: z_Archived Reporter: Konstantin Komissarchik <konstantin>
Component: SapphireAssignee: Shenxue Zhou <shenxue.zhou>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ram.venkataswamy
Version: unspecifiedKeywords: usability
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Konstantin Komissarchik CLA 2011-04-27 14:52:04 EDT
When the diagram uses default node presentation (a rectangle with a label in the center), the cell editor is vertically aligned with the top of the node rather than the center of the node like the label. The cell editor should always appear as close as possible to where the label is.

Also, when working on this, please constrain the width of the cell editor box so that it is offset from the node border by a few pixels on both left and right
Comment 1 Shenxue Zhou CLA 2011-06-02 17:38:13 EDT
In the default node presentation, the label height was the same as node height and the text was centered in the rectangle using text vertical center alignment. The cell editor from direct editing wasn't able to compensate the center alignment of the text. The fix was to not increase the label height but instead place the text in the center by giving the text half of the diff between node height and text height.
Comment 2 Ram Venkataswamy CLA 2011-06-02 19:32:19 EDT
verified with build 372
Comment 3 Konstantin Komissarchik CLA 2011-06-03 15:11:06 EDT
Closing.