GWT: Change padding of tree rows?

Posted by Epaga on Stack Overflow See other posts from Stack Overflow or by Epaga
Published on 2010-03-22T13:15:04Z Indexed on 2010/03/22 13:41 UTC
Read the original article Hit count: 380

Filed under:
|
|
|

A GWT tree looks roughly like this:

<div class="gwt-Tree">
    <div style="padding-top: 3px; padding-right: 3px;
                padding-bottom: 3px; margin-left: 0px;
                padding-left: 23px;">
         <div style="display:inline;" class="gwt-TreeItem">
              <table>
                   ...
              </table>
         </div>
    </div>
    <div ...>
    </div>
    ...
</div> 

My question is: how should I change the padding of the individual tree rows? I suppose I could do something along the lines of setting CSS rules for .gwt-Tree > div but that seems hacky. Is there a more elegant way?

© Stack Overflow or respective owner

Related posts about gwt

Related posts about css