From: Matti Tahvonen Date: Tue, 30 Oct 2007 09:53:20 +0000 (+0000) Subject: Tree is now not positioned and works in scrollable containers, but we lost keyboard... X-Git-Tag: 6.7.0.beta1~5754 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=30fc3c36df7a851da9527f1b3a874fd1fadaa913;p=vaadin-framework.git Tree is now not positioned and works in scrollable containers, but we lost keyboard navigation svn changeset:2621/svn branch:trunk --- 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 6a3ef49823..3df506269b 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/ITree.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/ITree.java @@ -49,6 +49,17 @@ public class ITree extends Tree implements Paintable { public ITree() { super((TreeImages)GWT.create(com.itmill.toolkit.terminal.gwt.client.ui.TreeImages.class)); setStyleName(CLASSNAME); + + // we can't live with absolutely positioned tree, we will lose keyboard navigation thought + DOM.setStyleAttribute(getElement(), "position", ""); + DOM.setStyleAttribute(DOM.getFirstChild(getElement()), "display", "none"); + } + + /* + * We can't live live with absolutely positioned tree. + */ + protected boolean isKeyboardNavigationEnabled(TreeItem currentItem) { + return false; } private void updateActionMap(UIDL c) {