Dmitry thank you.
As soon as my article is ready I'll place it on Wiki,
Tanks for quick response
Regards Yevgen Kravchenko
Looking forward to read the article :)
Hi ykravchenko,
Great find! I am glad my tree is not dancing anymore :)
still wondering about the problem of text-alignment with checkbox (as you can see at http://www.weblogimages.com/v.p?uid=nayanj&pid=579581&sid=puQ23hksP3). Firebug shows following classes are applied to misaligned text
.treeLabel { padding-left:10px; text-align:left; } .dr-tree-h-text { cursor:default; white-space:nowrap; } body { color:#362F2D; font-family:Verdana,Arial,Helvetica,sans-serif; font-size:small; line-height:1.25em; }
<td id="treeForm:tree:2:categoryNode:text" class="dr-tree-h-text rich-tree-node-text treeNode" rich:highlightedclass="dr-tree-i-hl rich-tree-node-highlighted" rich:selectedclass="dr-tree-i-sel rich-tree-node-selected"> <input id="treeForm:tree:2:categoryCheckbox" class="checkbox" type="checkbox" name="treeForm:tree:2:categoryCheckbox" onclick="A4J.AJAX.Submit('treeForm:treeRegion','treeForm', event, 'parameters':'treeForm:tree:2:j_id15':'treeForm:tree:2:j_id15'} , 'actionUrl':'/tree/example2.seam'} )"/> <span id="treeForm:tree:2:categoryText" class="treeLabel">Category 2</span> </td>
It's hard to give any suggestions without actual peace of code. Still I would suggest you to try putting text and checkbox in div or span (h:panelGroup)
Regards Yevgen