Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 432387 - The left/center/right justification buttons in the appearance property tab of geometric shape does not have any effect.
Summary: The left/center/right justification buttons in the appearance property tab of...
Status: RESOLVED FIXED
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: 1.7.0   Edit
Hardware: PC Windows 7
: P3 normal
Target Milestone: 1.8.0   Edit
Assignee: Vikas Chandra CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-09 00:24 EDT by Manoj Paul CLA
Modified: 2014-04-15 10:48 EDT (History)
2 users (show)

See Also:
ahunter.eclipse: luna+


Attachments
Patch to fix this issue (1.63 KB, patch)
2014-04-10 10:07 EDT, Vikas Chandra CLA
ahunter.eclipse: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Manoj Paul CLA 2014-04-09 00:24:12 EDT
Steps to reproduce the problem:
  1. Drag and drop a rectangle from the geometric shape palette drawer of a free diagram.
  2. Select the shape and go to the Appearance tab of the Properties view
  3. Click on one of the text justification button (right, center, left)
  Expected Result:
  The text of the geometric shape is aligned accordingly to the right, center or left.
  Actual Result:
  Nothing happens. The text remains centered as the default.
workaround:
Comment 1 Vikas Chandra CLA 2014-04-10 10:07:28 EDT
Created attachment 241843 [details]
Patch to fix this issue

For Label delegate, setTextAlignment works only  if

     *if the text's width or height (depending on
     * the location of the text relative to the icon) is smaller than the icon's
     * width or height

So if there is no icon,setAlignment should be used


     * Sets the alignment of the label (icon and text) within the figure.