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

Bug 356481

Summary: Section text is not painted properly if sections are on the right side
Product: z_Archived Reporter: Johan Schulz <schulz.johan>
Component: NebulaAssignee: Dirk Fauth <dirk.fauth>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: dirk.fauth
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Johan Schulz CLA 2011-09-01 10:52:30 EDT
Build Identifier: M20110210-1200

If the section column is drawn on the right side and the TextOrientation is SWT.HORIZONTAL the text is still on the left side.

in GanttComposite.drawSectionColumn the text is drawn properly if SWT.VERTICAL is used cause the gc.drawImage uses the correct bounds, in hirozontal mode method uses only the horizontal spacer (which is 3px afaik)

gc.drawText(gs.getName(), horiSpacer, yStart + (gsHeight / 2) - (gs.getNameExtent().y / 2), true);




Reproducible: Always

Steps to Reproduce:
1. create a section with textOrientation SWT.HORIZONTAL
2. use ISettings.sectionSide = SWT.RIGHT
3.
Comment 1 Dirk Fauth CLA 2013-08-08 03:30:08 EDT
Should be fixed with patch attached to Bug 414632
Comment 2 Dirk Fauth CLA 2013-10-07 03:12:46 EDT
Patch applied