Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 190079 - WrapLabel's center alignment makes text cuf-off
Summary: WrapLabel's center alignment makes text cuf-off
Status: RESOLVED FIXED
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 major
Target Milestone: 2.0   Edit
Assignee: Mohammed Mostafa CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 160380 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-30 18:36 EDT by Shashidhar Kannoori CLA
Modified: 2008-08-13 13:12 EDT (History)
2 users (show)

See Also:


Attachments
wrap text cut-off figure (2.86 KB, image/gif)
2007-05-30 18:37 EDT, Shashidhar Kannoori CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shashidhar Kannoori CLA 2007-05-30 18:36:51 EDT
WrapLabel's text cut-off happens if we set textwrap alignment as center.  Attached gif shows the behaviour.   (Note: if textwrap alignment set to left align, text does display appropriate, but expects same behaviour with center alignment.)

Here how WrapLabel's attributes are set.

protected IFigure createFigure() {
        WrapLabel labelFigure= new WrapLabel();
        labelFigure.setIconAlignment(PositionConstants.CENTER);
		labelFigure.setLabelAlignment(PositionConstants.CENTER);
		labelFigure.setTextPlacement(PositionConstants.SOUTH);
		labelFigure.setTextWrap(true);
		labelFigure.setTextWrapAlignment(PositionConstants.CENTER);
}
Comment 1 Shashidhar Kannoori CLA 2007-05-30 18:37:39 EDT
Created attachment 69416 [details]
wrap text cut-off figure

wrap text cut-off figure
Comment 2 Mohammed Mostafa CLA 2007-05-31 15:58:46 EDT
Fix had been delivered
Comment 3 Cherie Revells CLA 2007-09-12 13:00:57 EDT
*** Bug 160380 has been marked as a duplicate of this bug. ***
Comment 4 Richard Gronback CLA 2008-08-13 13:12:06 EDT
[target cleanup] 2.0 RC was the original target milestone for this bug
Comment 5 Eclipse Webmaster CLA 2010-07-19 12:30:27 EDT
[GMF Restructure] Bug 319140 : product GMF and component Runtime Diagram was the original product and component for this bug