Selaa lähdekoodia

Tree is now not positioned and works in scrollable containers, but we lost keyboard navigation

svn changeset:2621/svn branch:trunk
tags/6.7.0.beta1
Matti Tahvonen 16 vuotta sitten
vanhempi
commit
30fc3c36df
1 muutettua tiedostoa jossa 11 lisäystä ja 0 poistoa
  1. 11
    0
      src/com/itmill/toolkit/terminal/gwt/client/ui/ITree.java

+ 11
- 0
src/com/itmill/toolkit/terminal/gwt/client/ui/ITree.java Näytä tiedosto

@@ -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) {

Loading…
Peruuta
Tallenna