3.2.0

Tree Text Position

Hi,

I added the following code in order to allow a tooltip title to work with the list box:
list.setItemText(function(i){
    return "<span class=\"spnListRowTitle\" title=\"" + treeText[i] + "\">" + treeText[i] + "</span>";
});


The code works great except it now seems to put the actual text too low. Normally the tree control visually centers the text in the row. Adding this code it is putting it at the bottom. Its not a problem with most browsers, but Google Chrome is putting it so low that an underscore character can not be seen.

Does anyone know of a little tweak that can set this right? I've tried adding margin/padding to it to compensate but so far it wont move at all.
AT
January 25,
Nevermind all...simply setting vertical-align:text-top; fixed the issue.

Thanks!
AT
January 25,
I think you're doing the wrong thing. The tree widget is a derived class of the list class. As you can see from the hierarchy http://www.activewidgets.com/aw.ui.tree/ two of its models, control and item, support tooltips. I'd suggest trying those first.
Anthony
January 25,

This topic is archived.

See also:


Back to support forum