Permalink
Browse files

Add more classes to TreeItem elements

  • Loading branch information...
1 parent ca823ae commit 40c3d1429006f2f8f8944917fce33a6f350e1ac3 @vsevolod-fedorov vsevolod-fedorov committed Nov 6, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 library/pyjamas/ui/TreeItem.py
@@ -1,6 +1,6 @@
# Copyright 2006 James Tauber and contributors
# Copyright (C) 2009 Luke Kenneth Casson Leighton <lkcl@lkcl.net>
-# Copyright (C) 2011 Vsevolod Fedorov <vsevolod.fedorov@gmail.com>
+# Copyright (C) 2011-2012 Vsevolod Fedorov <vsevolod.fedorov@gmail.com>
#
# 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..
try:

0 comments on commit 40c3d14

Please sign in to comment.