Hussein Shafie escribi?: > Fco. Mario Barcala Rodr?guez wrote: > ... >> The problem is that some division_body are empty, and have nothing >> inside. In these cases if we "click" over collapser, the parent is >> collapsed, and it is not desirable for us. ?Is there any way to >> show the collapser only if division_body is not empty, or some >> other solution to avoid this collapser behaviour? > > An element which does not contain *blocks* (for example, because it is > empty) cannot be collapsible. See the "Limitation" note in > http://www.xmlmind.com/xmleditor/_distrib/docs/csssupport/ch04s11.html > > Fix your empty division_body problem as recommended in my previous email > and you'll also fix this problem.
I've found this weird behaviour several times, and already commented it in this mailing list. In my opinion the problem is not the stated limitation that a block without children cannot be collapsed. The real problem is the dynamic association between the collapser button and the block to be collapsed, depending on the block contents. I see it as a bug in XXE. My expected behavior is that a collapser either: - collapses the *innermost* collapsible block that contains it, if the block is not empty, or - doesn't collapses anything. In that case the button should be displayed as disabled (grayed). I've seen grayed collapsers several times. Being able to collapse a block outside the innermost collapsible surrounding scope is probably a surprising fact for most users (at least for me and for the starter of this thread). If you still think this is not buggy behaviour, please consider this message as a feature request for cleaning up (simplify) the collapser logical model. Thanks, -- ------------------------------------------------------------------------ Manuel Collado Machuca | Facultad de Informatica UPM Universidad Politecnica de Madrid | Campus de Montegancedo Dep. LSIIS | Boadilla del Monte Tel.+34-91-336.74.57 Fax.+34-91-336.65.95 | 28660 MADRID - SPAIN ------------------------------------------------------------------------

