How to make width of a rect transform object adjust to child objects increasing from one side

In the game, UI objects (buttons) are dynamically created, they can be added and removed, the parent object should adjust to their size and only grow to the right, i used anchor but it still increase in two sides

Video of adding objects and their propereties:

Solved by simple setting Categories object pivot x to 0