it's just that imgui renders in immediate mode and buttons are laid out and put into the draw buffer immediately from left to right. When I want to align things on the right I have to offset manually last I tried. Having said that I have tricks for alignment which I haven't done because lazy