How do I center-align vertically for box row?

I have two buttons in one row, first button in box, second one is not. Why second button not centered vertically?

row = box.row()
rows = row.box()
rows.operator(text = “first btn”)
row.operator(text = “second btn”)

Screenshot_16

If I continue to boxing in first button, second stays the same. How do I center-align vertically?

Screenshot_17

the short answer is that UILayout does not really give you any good options for general alignment. This is done intentionally to avoid third party addons from being created that have ‘funky’ layouts, etc. It’s the same reason you can’t horizontally center text, things like that.

1 Like