We have a TreeGrid where the user can open a subtree with a single click, instead of a double click.
This works fine with a ClickHandler, but we have found that the resulting TreeGrid has different styling classes compared to when clicking on the expansion icon to the left of the folder.
In below testcase, clicking on the expansion icon of node "Two" results in the expected styling classes.
However, when you click on "Two" to expand that folder, some of the html elements within "two" maintain a "treeCellSelectedOver" class, which should be "treeCellSelected" instead.
This seems IE9 only.
Can you look into this please?
final VLayout layout = new VLayout(10);
final TreeGrid moduleTree = new TreeGrid();
moduleTree.setShowEdges(true);
moduleTree.setWidth("200px");
moduleTree.setHeight("200px");
moduleTree.setShowConnectors(false);
moduleTree.setSelectionType(SelectionStyle.SINGLE);
moduleTree.setNodeIcon(null);
moduleTree.setFolderIcon(null);
moduleTree.setShowOpenIcons(true);
moduleTree.setShowDropIcons(true);
moduleTree.setStyleName("treeHomepage");
moduleTree.setBodyStyleName("treeBodyHomepage");
moduleTree.setFastCellUpdates(false);
moduleTree.setCanFocus(false);
moduleTree.addFolderClickHandler(new FolderClickHandler() {
public void onFolderClick(FolderClickEvent event) {
moduleTree.scrollToRow(event.getRecordNum());
if (!event.getViewer().getTree().isOpen(event.getFolder())) {
event.getViewer().getTree().openFolder(event.getFolder());
}
}
});
final Tree tree = new Tree();
tree.setModelType(TreeModelType.PARENT);
tree.setShowRoot(false);
TreeNode one = new TreeNode("one");
one.setIsFolder(false);
one.setID("one");
TreeNode two = new TreeNode("two");
two.setIsFolder(true);
two.setID("two");
TreeNode three = new TreeNode("three");
three.setIsFolder(false);
three.setID("three");
tree.setRoot(one);
tree.add(two, one);
tree.add(three, two);
moduleTree.setData(tree);
layout.addMember(moduleTree);
layout.draw();
This works fine with a ClickHandler, but we have found that the resulting TreeGrid has different styling classes compared to when clicking on the expansion icon to the left of the folder.
In below testcase, clicking on the expansion icon of node "Two" results in the expected styling classes.
However, when you click on "Two" to expand that folder, some of the html elements within "two" maintain a "treeCellSelectedOver" class, which should be "treeCellSelected" instead.
This seems IE9 only.
Can you look into this please?
final VLayout layout = new VLayout(10);
final TreeGrid moduleTree = new TreeGrid();
moduleTree.setShowEdges(true);
moduleTree.setWidth("200px");
moduleTree.setHeight("200px");
moduleTree.setShowConnectors(false);
moduleTree.setSelectionType(SelectionStyle.SINGLE);
moduleTree.setNodeIcon(null);
moduleTree.setFolderIcon(null);
moduleTree.setShowOpenIcons(true);
moduleTree.setShowDropIcons(true);
moduleTree.setStyleName("treeHomepage");
moduleTree.setBodyStyleName("treeBodyHomepage");
moduleTree.setFastCellUpdates(false);
moduleTree.setCanFocus(false);
moduleTree.addFolderClickHandler(new FolderClickHandler() {
public void onFolderClick(FolderClickEvent event) {
moduleTree.scrollToRow(event.getRecordNum());
if (!event.getViewer().getTree().isOpen(event.getFolder())) {
event.getViewer().getTree().openFolder(event.getFolder());
}
}
});
final Tree tree = new Tree();
tree.setModelType(TreeModelType.PARENT);
tree.setShowRoot(false);
TreeNode one = new TreeNode("one");
one.setIsFolder(false);
one.setID("one");
TreeNode two = new TreeNode("two");
two.setIsFolder(true);
two.setID("two");
TreeNode three = new TreeNode("three");
three.setIsFolder(false);
three.setID("three");
tree.setRoot(one);
tree.add(two, one);
tree.add(three, two);
moduleTree.setData(tree);
layout.addMember(moduleTree);
layout.draw();
Comment