This is a migrated thread and some comments may be shown as answers.

[Solved] Remove padding and margin of nodes

0 Answers 165 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Deyan
Top achievements
Rank 1
Deyan asked on 06 Jun 2012, 03:05 PM
Hi,
I have tree binded with sitemap.
Because of many  nodes I want to shrink tree and for that reason I wrote that css:
.t-treeview .t-in
{
    padding: 0;
    border: 0;
    margin: 0;
}
.t-treeview .t-state-hover, .t-treeview .t-state-selected
{
    padding: 0;
    border: 0;
    margin: 0;
    text-decoration: none;
}

thats work great but with little exception
When I have this structure
A-
   B- 
     C- 
D-    
When I collapse B, the D node shifts under the B (like child):
A-               instead of   A-
   B-                                  B-
   D-                              D-
How can I achieve my goal without that annoying bug ?
Thank You
Tags
TreeView
Asked by
Deyan
Top achievements
Rank 1
Share this question
or