fixes #17682: ListItem variable height layout on resize() has negative impact on performances