diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2007-11-07 10:11:18 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2007-11-07 10:11:18 +0000 |
commit | f39604cbe25f2c408a3130af32b407c234a2f1bb (patch) | |
tree | 476588df825928ce6b0a5949b0d502898c378cb2 /src/com/itmill | |
parent | 8b5dcd2706a0f076b1c97aab5eb79e4b7f773173 (diff) | |
download | vaadin-framework-f39604cbe25f2c408a3130af32b407c234a2f1bb.tar.gz vaadin-framework-f39604cbe25f2c408a3130af32b407c234a2f1bb.zip |
fixed issues with IE6 and selection indication
svn changeset:2730/svn branch:trunk
Diffstat (limited to 'src/com/itmill')
-rw-r--r-- | src/com/itmill/toolkit/terminal/gwt/client/ui/ITree.java | 4 | ||||
-rw-r--r-- | src/com/itmill/toolkit/terminal/gwt/public/default/tree/tree.css | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/ITree.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/ITree.java index d3bd9befbf..d4384f2412 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/ITree.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/ITree.java @@ -284,7 +284,9 @@ public class ITree extends Tree implements Paintable, TreeListener { * @param selected */ public void setISelected(boolean selected) { - setStyleName(getElement(), "i-tree-node-selected", selected); + // add style name to caption dom structure only, not to subtree + Element styleElement = DOM.getFirstChild(getElement()); + setStyleName(styleElement, "i-tree-node-selected", selected); } public void showContextMenu(Event event) { diff --git a/src/com/itmill/toolkit/terminal/gwt/public/default/tree/tree.css b/src/com/itmill/toolkit/terminal/gwt/public/default/tree/tree.css index befd6e4cf2..dce4977d41 100644 --- a/src/com/itmill/toolkit/terminal/gwt/public/default/tree/tree.css +++ b/src/com/itmill/toolkit/terminal/gwt/public/default/tree/tree.css @@ -2,14 +2,14 @@ cursor: pointer; } -.i-tree-node-selected > table > tbody > tr > td > .gwt-TreeItem { +.i-tree-node-selected .gwt-TreeItem { background: #5daee8; color: #fff; display: block; padding: 1px; margin: -1px -1px; } -.i-tree-node-selected > table > tbody > tr > td > .gwt-TreeItem:before { +.i-tree-node-selected .gwt-TreeItem:before { display: block; float: left; content: url(../common/img/blank.gif); @@ -17,7 +17,7 @@ background: #5daee8; margin: 0 1px 0 -2px; } -.i-tree-node-selected > table > tbody > tr > td > .gwt-TreeItem:after { +.i-tree-node-selected .gwt-TreeItem:after { display: block; float: right; content: url(../common/img/blank.gif); |