poptanimukesh / google-web-toolkit-incubator

Automatically exported from code.google.com/p/google-web-toolkit-incubator
0 stars 0 forks source link

convertElementToInteriorNode and STYLENAME_SELECTED problem #358

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of gwt and gwt-incubator are you using?
gwt-incubator-20100204r1747

What OS and browser are you using?
Windows XP, Firefox

Do you see this error in hosted mode, web mode, or both?
both

(If possible, please include a test case that shows the problem)
sorry, no test case available

Hopefully using the test case you have generously provided, what steps will
reproduce the problem? 
1.Select a leaf node
2.Add item to that node with addItem()
3.That node will keep the STYLENAME_SELECTED classname even if other nodes
are selected

What is the expected output? What do you see instead?
Excpect to remove STYLENAME_SELECTED from "gwt-FastTreeItem
gwt-FastTreeItem-leaf" element and moved to new inner wrapper div, I see
tat node always selected even if I select another one.

Workaround if you have one:

Please provide any additional information below,  and thank you for taking
the time and effort to report this issue, as good issue reports are
critical for our quest to make GWT's new widgets and libraries shine.
I believe that the problem is in FastItemTree::becomeInteriorNode, or in
FastItemTree::convertElementToInteriorNode where the STYLENAME_SELECTED
should be removed as well and applied to the new element wrapper.

Original issue reported on code.google.com by ste...@gmail.com on 24 May 2010 at 3:01