I coded a CustomTreegrid
, and some custom leafs have triple the height of a standard Treenode
/leaf. (here is how i did it: custom treenode smartgwt)
But when I want to show connector lines between the nodes with setShowConnectors(true);
, the connector lines are only as long as the standard height of a standard TreeNode
.
Whenever a custom leaf appears in the tree, there are huge gaps and the connector lines are only as long as the standard height of a leaf.
I've been looking for days for a way to fix it and i looked in skin_styles.css
, the functions setConnectorImage(String connectorImage)
, getConnectorImage
.
I think the problem is, that the image 'connector_ancestor.gif' is only as high as one leaf and doesn't get drawn multiply times..
How can I fix the gaps in my connector lines?
Edit: Here is an image to show what I mean: (since i can't upload images here yet, its a link to imgur.com) https://i.stack.imgur.com/Ujrzl.jpg
2.Edit searching the api for a solution I came across this sentence in the description of setConnectorImage(String connectorImage)
: Connector icons are rendered into the title field of each row and show the dotted hierarchy lines between siblings of the same parent node
-- So it seams I have to play around with the height of the title field, or at least search further in this direction.