[SOLVED] ItemListBoxes not rendering last item
Posted: Sun Apr 05, 2020 00:25
I'm using CEGUI version 0.8.7, with the OpenGL3 renderer.
Similar to http://cegui.org.uk/forum/viewtopic.php?f=3&t=7083&p=33942&hilit=last+item+in+listbox#p33942, my ItemListBox was not rendering the last ItemEntry added to it. I tried the method of using as well as using to no avail. Finally, I decided that I'd just have an extra entry at the end so that that wouldn't render, but my actual entries would, and when I used sortList(), all of my entries began showing up.
The fix was simply to choose a sorting method, and then call sortList() when I was finished adding entries.
I've added this here so that future 0.8.7 users can find it. Let me know if this isn't the right place.
Similar to http://cegui.org.uk/forum/viewtopic.php?f=3&t=7083&p=33942&hilit=last+item+in+listbox#p33942, my ItemListBox was not rendering the last ItemEntry added to it. I tried the method of using
Code: Select all
invalidate()Code: Select all
notifyScreenAreaChanged()The fix was simply to choose a sorting method, and then call sortList() when I was finished adding entries.
I've added this here so that future 0.8.7 users can find it. Let me know if this isn't the right place.