I use a TreeViewer. I do not understand why the first column of my table has an empty space on the left. This does not depend on the column, because if I change the first column, the gap is still there. The second column is well left-aligned.
Asked
Active
Viewed 176 times
1
-
TreeViewer or TableViewer? - you say different things in the title and body of the question. – greg-449 Oct 09 '13 at 15:45
-
TreeViewer, title modified. – Manuel Campomanes Oct 10 '13 at 07:30
1 Answers
1
This is space left for the tree expand / collapse twistie image. The space is always reserved even if you have no children for the tree nodes.
If you don't have any children then use TableViewer
.

greg-449
- 109,219
- 232
- 102
- 145
-
-
There is only one expand / collapse image per row, in the first column. – greg-449 Oct 10 '13 at 08:40
-
The solution to remove this space is to change TreeViewer to TableViewer or is there another way ? – Manuel Campomanes Oct 10 '13 at 09:10