Strange behaviour with selected in IGUITable

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Virror
Posts: 191
Joined: Mon May 02, 2011 3:15 pm

Strange behaviour with selected in IGUITable

Post by Virror »

Currently if you have for example the third item selected, then you remove the first item, then the third item is still selected.
Should not the selection move when adding and removing items? Feels alot more logical.
Might not be a direct bug, but i still think this is wrong behaviour.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Strange behaviour with selected in IGUITable

Post by CuteAlien »

You mean on removeRow? I just checked the listbox code and it's done there, so I guess the table should indeed behave the same way. Thanks for reporting.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Virror
Posts: 191
Joined: Mon May 02, 2011 3:15 pm

Re: Strange behaviour with selected in IGUITable

Post by Virror »

Exactly, selection should move up one step when removing a row above it.
Post Reply