Have you ever seen a GWT tree before? It sort of resembles the following structure:
<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>
I'm curious about adjusting the padding for each tree row individually. Would it be acceptable to set CSS properties for .gwt-Tree > div
or is there a more refined approach?
Solution: As far as we have discovered, there doesn't seem to be a more graceful method. This is what worked for us:
.gwt-Tree > div:first-child {
width: 0px !important;
height: 0px !important;
margin: 0px !important;
padding: 0px !important;
}
.gwt-Tree > div {
padding: 0px 5px !important;
}
.gwt-Tree > div[hidefocus=true] {
width: 0px !important;
height: 0px !important;
margin: 0px !important;
padding: 0px !important;
}