I'm using a Unity UI for my inventory that has a total of 14 slots.
Each inventory element and button is linked correctly in the AC menu and the Unity UI's Grid is set to centered, with no padding at the left or right sides.
The issue what appears to happen is that when new inventory is added, it places it at the front of the 14 slots, and even though the slots are empty and the menu is set to disable objects when empty (I've tried 'Clear Content' too) it's still counting those empty slots as if they're a part of the inventory, so the menu appears left-aligned.
See a screenshot below:

Here's the inventory also added into the scene so you can see how it's aligning them to the left and not removing the other slots:

All slots have no images applied to their buttons' element and each button is identical.
Here's the UI:






And here's the AC menu:

As I mentioned previously, I've tried setting the 'When slot is empty' to Clear Content too but it doesn't change anything.
Even though I'm making a game that supports multiple aspect ratios, I've tried it with everything based at 16:9 but it's still the same. Even in other aspect ratios the menu is technically centered but the empty buttons are still being counted, despite that they shouldn't be counted/included at all.
I'm sorry for all of the images but I figured it's best to have a clear view of what I'm trying to explain.
It looks like you're new here. If you want to get involved, click one of these buttons!