swt - TreeViewer no longer sizes properly when using StyledCellLabels -
i using jface treeviewer while. has bunch of branches of varying lengths, @ end of day, entire tree stretched size of longest string. great.
recently, decided treeitems labels should have style them fonts , highlights.
the trouble, new fonts bit larger , stretch size of overall string. seems tree or treeviewer doesn't recognize expansion , still judges size of label amount of small characters in it. result treeviewer horizontal scrollbar, highly inconvenient because users have scroll across each tree, rather being glance @ data.
does know how tree fit length of longest string, , take account added length of styling, etc?
thanks!
while not complete answer, hope jogs someone's memory has more advanced knowledge on this:
when set font viewercell object font wide, entire row resizes. seems tree measures width checking length of text , font, disregards style ranges.
Comments
Post a Comment