Peter Kiš
Peter Kiš
So far, I can only assume that it has something to do with the `_sort_if_needed()` method inside `InventoryGrid`.
> @peter-kish one weird thing I've noticed... When I hit play in the remote scene the inventory size is 10x10 but I've set it in all scenes for it to...
> So other thing I've noticed is that when I set an inventory for the CtrlInventoryGridEx via script, unset it and set it again... the sort messes up... also if...
> clear it using sort() This is kinda weird, `sort()` should only reorder the items and should not clear the inventory:  Can you share some code, or even better,...
Hmm.. I tried it again with `clear()`, but I'm still unable to reproduce the issue: 
Sure, i just modified one of the examples: ```gdscript extends Control @onready var ctrl_inventory_left: CtrlInventoryGrid = $VBoxContainer/HBoxContainer/VBoxContainer/PanelContainer/CtrlInventoryGridLeft @onready var ctrl_inventory_right: CtrlInventoryGrid = $VBoxContainer/HBoxContainer/VBoxContainer2/PanelContainer2/CtrlInventoryGridRight @onready var btn_add_left: Button = $VBoxContainer/HBoxContainer/VBoxContainer/BtnAddLeft @onready...
Weird... I haven't seen similar issues before. Any chance you could put together a small example that has the same problems, so I can look deeper into it?
Hey, sorry for the late reply. I don't see anything wrong with the code you posted, though of course, I wasn't able to debug it. One more thing you can...
@LeeWannacott Oh, this actually looks like something I fixed in v2.4.1. There's still no 2.4.1 release because I'm still polishing things, but it is available on the [dev_v2.4.1](https://github.com/peter-kish/gloot/tree/dev_v2.4.1) branch and...
> Thanks for example that's helpful, I don't know if I need to override if I use ItemSlot, although it might be better/ less work than having to maintain a...