Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Add more classes to TreeItem elements #779

merged 1 commit into from

2 participants


This allows to create css like this:

.gwt-Tree table {
  width: 100%;

.gwt-TreeItemTdImg {
  width: 16px;

.gwt-TreeItemTdContent span {
  width: 100%;
  display: block !important;

And make Tree look like navigator when placed to the left side of a page.


this looks fine to me, merged

@xtfxme xtfxme merged commit c0487a5 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 6, 2012
  1. @vsevolod127
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 1 deletion.
  1. +4 −1 library/pyjamas/ui/
5 library/pyjamas/ui/
@@ -1,6 +1,6 @@
# Copyright 2006 James Tauber and contributors
# Copyright (C) 2009 Luke Kenneth Casson Leighton <>
-# Copyright (C) 2011 Vsevolod Fedorov <>
+# Copyright (C) 2011-2012 Vsevolod Fedorov <>
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -71,6 +71,9 @@ def __init__(self, html=None, **ka):
DOM.appendChild(tdImg, self.imgElem)
DOM.appendChild(tdContent, self.contentElem)
+ self.setStyleName(tdImg, "gwt-TreeItemTdImg", True)
+ self.setStyleName(tdContent, "gwt-TreeItemTdContent", True)
# XXX - can't set pos relative on a div node,
# or white_space on an HTML Table..
Something went wrong with that request. Please try again.