| Summary: | SortArrowRenderer paints chevron in opposite direction than standard TableColumn | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Peer Törngren <mbr-eclipse> | ||||||
| Component: | Nebula | Assignee: | Laurent CARON <laurent.caron> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | cgross, laurent.caron, mbr-eclipse | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| See Also: | https://github.com/eclipse/nebula/pull/151 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Peer Törngren
Created attachment 190992 [details]
Screenshot SWT Snippet002
Created attachment 190993 [details]
Screenshot Nebula GridSnippet002
A fix is extremely simple.
Alternative 1: org.eclipse.nebula.widgets.grid.internal.DefaultColumnHeaderRenderer.paint(GC, Object)
On line 225 (in the version I have):
arrowRenderer.setSelected(column.getSort() == SWT.UP);
change to:
arrowRenderer.setSelected(column.getSort() == SWT.DOWN);
Alternative 2:
org.eclipse.nebula.widgets.grid.internal.SortArrowRenderer.paint(GC, Object)
On line 43 (in the version I have):
if (isSelected())
change to:
if (!isSelected())
For bonus points, expose the SortArrowRender in the API to let me assign my own arrow renderer:
gridColumn.getHeaderRenderer().setArrowRenderer(myArrowRenderer)
Bug fixed in Nebula 2.3.0 |