celltree indentation

163 views
Skip to first unread message

Torgeir

unread,
Jan 24, 2011, 10:29:37 PM1/24/11
to Google Web Toolkit
Am looking for a way to change the tree node indentation of a cell
tree, but can't find any method, nor any css resource that seems to
specify this, it's always fixed at 16px. Does anyone have a way of
specifying this?

John LaBanca

unread,
Jan 24, 2011, 10:41:56 PM1/24/11
to google-we...@googlegroups.com
Its based on the width of the open/close image icon.  You can provide your own images by extending CellTree.Resources and passing the resources into the constructor.  Use narrower images for less padding.  For more padding, add transparent padding to the left (or right) of the icon image.

Thanks,
John LaBanca
jlab...@google.com



--
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


Joel

unread,
Dec 12, 2012, 10:01:48 PM12/12/12
to google-we...@googlegroups.com, jlab...@google.com

I'd like to get rid of the indentation at least for the first set of children, but I still want the arrow icon images for open close (same as Outlook). The reason is that the root nodes look like dividers (for each category).

How can I do that?

J


On Monday, January 24, 2011 9:41:56 PM UTC-6, John LaBanca wrote:
Its based on the width of the open/close image icon.  You can provide your own images by extending CellTree.Resources and passing the resources into the constructor.  Use narrower images for less padding.  For more padding, add transparent padding to the left (or right) of the icon image.

Thanks,
John LaBanca
jlab...@google.com


On Mon, Jan 24, 2011 at 10:29 PM, Torgeir <torgei...@gmail.com> wrote:
Am looking for a way to change the tree node indentation of a cell
tree, but can't find any method, nor any css resource that seems to
specify this, it's always fixed at 16px. Does anyone have a way of
specifying this?

--
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsub...@googlegroups.com.

Joel

unread,
Dec 14, 2012, 11:50:25 AM12/14/12
to google-we...@googlegroups.com, jlab...@google.com
Looking at CellTreeNodeView.java, I can see this is pretty buried in the implementation.
Reply all
Reply to author
Forward
0 new messages