forTEXT / catma

Computer Assisted Text Markup and Analysis
https://www.catma.de
GNU General Public License v3.0
89 stars 8 forks source link

Small arrows to expand results in query results lists almost always have to be double-clicked #289

Open maltem-za opened 3 years ago

maltem-za commented 3 years ago

This is unintuitive and often frustrating. If I remember correctly though, there is a reason and it isn't so easy to solve.

mpetris commented 2 years ago

Expanding results for the first time leads to a lazy creation of the child items. A dummy child (that is needed to display the arrow at all) gets removed and the real children get added. This is a performance optimization since adding all children up front can lead to performance issues when a result has a lot of entries. Ideally this lazy creation shouldn't lead to the need for a second click though. That might be a problem in the Vaadin TreeGrid component which wasn't really prepared for lazy creation.