Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
30fc3c36df

+ 11
- 0
src/com/itmill/toolkit/terminal/gwt/client/ui/ITree.java Dosyayı Görüntüle

@@ -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…
İptal
Kaydet