SVGHMI: fading page switch : defer update of classList to next animate() call when finishing transition.
classList update was happening in the same call as switch_page(), but this call is not meant to do any change in the DOM. This was triggering unwanted style and layout recomputation.
// widget_textlist.ysl2
widget_desc("TextList") {
longdesc
||
TextList widget is a svg:group, list items are labeled elements
in that group.
To use a TextList, clone (svg:use) one of the items inside the widget
that expects a TextList.
In this list, (translated) text content is what matters. Nevertheless
text style of the cloned item will be applied in client widget.
||
shortdesc > A named list of ordered texts
arg name="listname"
}
widget_defs("TextList") {
| texts: [
foreach "func:refered_elements($hmi_element/*[@inkscape:label])[self::svg:text]" {
| id("«@id»"),
}
// could find a proper way in xpath to reverse()
| ].reverse(),
}