1
單擊兩個節點之間的空白時,cellTree會消失。 Bug甚至在Showcase gwt的例子。 有什麼解決方法嗎?如何解決GWT CellTree消失(bug)?
單擊兩個節點之間的空白時,cellTree會消失。 Bug甚至在Showcase gwt的例子。 有什麼解決方法嗎?如何解決GWT CellTree消失(bug)?
我發現在http://code.google.com/p/google-web-toolkit/issues/detail?id=6359
建議的修復討論爲我工作:
import com.google.gwt.user.cellview.client.CellTree.Resources;
模塊
...
Resources resource = GWT.create(Resources.class);
StyleInjector.injectAtEnd("."+resource.cellTreeStyle().cellTreeTopItem()+" {margin-top: 0px;}"); // Not the best code
tree = new CellTree(treeModel, treeModel.getRoot(),resource);
您更好地創建自定義的資源,這是比較難看 – fabiangebert