View Full Version : Removing blank indent images in TreePanel?

12 Feb 2010, 1:47 PM
Can anyone recommend the best way to remove those blank indent images for the treePanel?

Currently, if you don't use images to indent items in the TreePanel, ext by default uses this 1x1 image. I don't want this extra unecessary IMG tag.

<span class="x-tree-node-indent"><img class="x-tree-icon" src="js/ext-3.1.1/resources/images/default/s.gif"/></span>
<img class="x-tree-ec-icon x-tree-elbow-end" src="js/ext-3.1.1/resources/images/default/s.gif"/>Ideally I want to get rid of this and just put two spans in there. I'm trying to do this because for large trees, you have a lot of useless "img" tags that are very unnecessary..