Philippe Nobili wrote:
>
> One of the views we have in the XXE addon we wrote for our XML schema
> presents the elements uaing a tree-like view. When the @presence
> attribute is set to 'mandatory', the grp elements are displayed non
> collapsed by default, otherwise they are; e.g. in our CSS:
>
> geov|grp {
> display: block ;
> collapsible: yes;
> collapsed: yes;
> not-collapsible-head: 1;
> }
> geov|grp[presence=mandatory] {
> collapsed: no;
> }
>
> Now, whatever the collapsible state of the geov|grp element, if we
> add/modify one of its children, the entire tree gets collapsed again
> when @presence != 'mandatory'. For geov|grp whose @presence =
> 'mandatory', everything works as expected and the current collapsible
> state is kept unchanged.
>
> Is there any workaround to prevent this from happening ? (it is somewhat
> cumbersome for it forces the users to constantly re-open the tree-view
> nodes..).
>
This is not a bug. It is a behavior which is annoying in many cases,
including yours. There is no workaround. Unfortunately, you'll have to
remove "collapsed: yes;" and "collapsed: no;" in order to make it easier
for your users.
Here's what happens:
Depending on the CSS selectors referencing geov|grp, its attributes and
its child elements, XXE may be forced to recreate the view of geov|grp
when you add or modify one of its child elements. And when a new view is
created for geov|g...@presence != 'mandatory'}, it is automatically
created in collapsed state.
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support