PDA

View Full Version : TreePanel indenting is hardcoded, cannot be overridden



DanWhite
17 Sep 2010, 2:25 AM
Hi,

In TreePanelView there is no way to change the amount of indenting for each level of the tree. This is permanently set to 18px and hardcoded in the style attribute of the spacer image for each row of the control.

Could this be refactored to allow for control over the indentation? Not really a bug, but it is bad practice.

Thanks.

sven
17 Sep 2010, 2:34 AM
As you already mentioned, this is not really a bug. We can probably add a method which you can easier override, because as of now, you need to change the hole template. But it is still possible.

sven
17 Sep 2010, 4:29 AM
Change for this is in SVN as of revision 2235.