]> source.dussan.org Git - vaadin-framework.git/commitdiff
Tree is now not positioned and works in scrollable containers, but we lost keyboard...
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 30 Oct 2007 09:53:20 +0000 (09:53 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 30 Oct 2007 09:53:20 +0000 (09:53 +0000)
svn changeset:2621/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/ITree.java

index 6a3ef498232d6f7af268ad748f7b6e158f6fb6b7..3df506269bfe2c2e8f7bbefe6060368a12ec1e95 100644 (file)
@@ -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) {