summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/vaadin')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VTreeTable.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VTreeTable.java b/src/com/vaadin/terminal/gwt/client/ui/VTreeTable.java
index ecc065e117..b3b24b3f39 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VTreeTable.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VTreeTable.java
@@ -192,6 +192,16 @@ public class VTreeTable extends VScrollTable {
treeSpacer = Document.get().createSpanElement();
+ if (BrowserInfo.get().isIE6()) {
+ // Must add an absolutely positioned element with right:
+ // 0 to get the background aligned to the right in IE 6
+ // where AlphaImageLoader is used for the background
+ SpanElement ieSpacerHolder = Document.get()
+ .createSpanElement();
+ ieSpacerHolder.addClassName("v-treetable-spacer-ie");
+ treeSpacer.insertFirst(ieSpacerHolder);
+ }
+
treeSpacer.setClassName(classname);
container.insertFirst(treeSpacer);
depth = rowUidl.hasAttribute("depth") ? rowUidl
@@ -213,7 +223,8 @@ public class VTreeTable extends VScrollTable {
@Override
public void onBrowserEvent(Event event) {
- if (event.getEventTarget().cast() == treeSpacer
+ SpanElement target = event.getEventTarget().cast();
+ if ((target == treeSpacer || target.getParentElement() == treeSpacer)
&& treeSpacer.getClassName().contains("node")) {
if (event.getTypeInt() == Event.ONMOUSEUP) {
sendToggleCollapsedUpdate(getKey());