Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356481 - Section text is not painted properly if sections are on the right side
Summary: Section text is not painted properly if sections are on the right side
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Nebula (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dirk Fauth CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-01 10:52 EDT by Johan Schulz CLA
Modified: 2021-07-05 11:41 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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