Page 1 of 1

[SOLVED] ItemListBoxes not rendering last item

Posted: Sun Apr 05, 2020 00:25
by davislast19
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

Code: Select all

invalidate()
as well as using

Code: Select all

notifyScreenAreaChanged()
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.

Re: [SOLVED] ItemListBoxes not rendering last item

Posted: Sun Apr 05, 2020 03:07
by Ident
Can this be fixed in code?

Re: [SOLVED] ItemListBoxes not rendering last item

Posted: Sun Apr 05, 2020 23:27
by davislast19
I'm sorry, I'm not quite sure what you mean by "in code." I (by random luck) discovered this fix, and made it in my own C++ code.