I am trying to detect the page rect for a node in a TreeGrid. The method getCellPageRect(row, height) is almost what I need except the fact that the returned rectangle contains the entire cell and is not limited to the start and the end of the actual node within the cell. What else could I use to get these margins? I read the com.smartgwt.client.docs.Positioning documentation but found nothing related to TreeGrid.
Maybe a method like getCellContentPageRect(row, height) would be a good idea to improve the API? It is just a suggestion if you find it useful...
Just as a clarification: we plan to use these values to display custom components as hints near (at the start, end, top, bottom) tree nodes. If the column of the tree is wide and the node is short and due to indent spacing appears in the middle of the column, neither the start nor the end of the cell is useful since the hint will appear too far from the actual node. I hope I made myself clear and a hint in the right direction is much appreciated. Thank you!
Maybe a method like getCellContentPageRect(row, height) would be a good idea to improve the API? It is just a suggestion if you find it useful...
Just as a clarification: we plan to use these values to display custom components as hints near (at the start, end, top, bottom) tree nodes. If the column of the tree is wide and the node is short and due to indent spacing appears in the middle of the column, neither the start nor the end of the cell is useful since the hint will appear too far from the actual node. I hope I made myself clear and a hint in the right direction is much appreciated. Thank you!
Comment