On 2 avr. 07, at 11:45, Luc Heinrich wrote:
For example, when using the test page from the latest svn: in the
'Sample 1 - default' tree, collapse 'Folder 2' then expand it
again: boom, the 'Subfolder 2.1' node is not collapsible anymore.
This apparently happens only if 'Subfolder 2.1' is expanded when
you collapse 'Folder 2', if it's collapsed then it can be expanded
but then it won't be collapsible anymore.
Replying to myself, sorry...
The problem seems to happen because hitareas of subnodes of collapsed
items "lose" their float attribute (or it gets screwed, or whatever)
so the hitarea basically vanishes. Forcing absolute positioning on
hitareas fixes the problem:
Index: jquery.treeview.js
===================================================================
--- jquery.treeview.js (revision 1613)
+++ jquery.treeview.js (working copy)
@@ -128,6 +128,7 @@
width: 15,
marginLeft: "-15px",
"float": "left",
+ position: "absolute",
cursor: "pointer"
};
This change doesn't seem to cause any regression in Firefox. I
haven't tested it in IE though.
--
Luc Heinrich