Something like that happened to me.

What i did was the following.

For example:

<div id="container">
<!-- here goes my tree -->
</div>

In the css:

#container div { padding: 20px; margin: 20px; }

Play with padding and margin and it could help you.

On 25 jul, 21:11, "David E." <dve1...@gmail.com> wrote:
> I'm trying to control the margin, image size and padding in a gwt-tree
> and gwt-tree-items. I've read the various posts but haven't found
> anything definitive that resolved the problem. I may have missed
> something, but below is the results of my latest efforts on being able
> to control these attributes on the tree. See below for the firebug
> view of the html in the browser. You can see that gwt-Tree and
> gwtTreeItem don't have any padding or margins set but the phantom div
> parent that was generated does. How do you control the on that parent
> div to gwt-TreeItem? Also, you can see GWT inserts the 16px x 16px
> blank space, where does that come from and how can we control it?
>
> Thanks in advance,
>
> css:
>
> .gwt-Tree {
>   margin: 0px 0px 0px 0px !important;
>   padding: 0px 0px 0px 0px !important;
>
> }
>
> .gwt-Tree .gwt-TreeItem {
>   margin: 0px 0px 0px 0px !important;
>   padding: 0px 0px 0px 0px !important;
>
> }
>
> .gwt-Tree .gwt-TreeItem-selected {
>   margin: 0px 0px 0px 0px !important;
>   padding: 0px 0px 0px 0px !important;
>
> }
>
> output from firebug:
>
> <div style="padding: 0px; margin-left: 0pt;">
>   <table style="white-space: nowrap;">
>     <tbody>
>       <tr>
>         <td style="vertical-align: middle;">
>           <img border="0" style="width: 16px; height: 16px;
> background: url(&quot;http://localhost:8888/formsui2/
> A7CD51F9E5A7DED5F85AD1D82BA67A8A.cache.png&quot;) no-repeat scroll
> -32px 0px transparent;" src="http://localhost:8888/formsui2/
> clear.cache.gif">
>         </td>
>         <td style="vertical-align: middle;">
>           <div style="display: inline;" class="gwt-TreeItem"
> role="treeitem" id="gwt-uid-46">Fast Load_FF
>           </div>
>         </td>
>       </tr>
>     </tbody>
>   </table>
> <div style="white-space: nowrap; display: none;">
>   <div style="padding: 3px 3px 3px 23px; margin-left: 16px;">
>     <div style="display: inline;" class="gwt-TreeItem" role="treeitem"
> id="gwt-uid-47">What Up?
>     </div>
>   </div>
> </div>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to