@omz, I didn't write this as a bug because maybe you added something I am not aware about.
But if you create a ui.Button without params you get width and height = 0.
If you create a ui.Table without params, you get a width and height of 100.
Maybe you added something to set this globally.
But if not, it would seem reasonable to create the objects as you do in the designer. Eg. Ui.Button() w = 80, h = 32. ui.TableView() w = 200, h = 200
From memory in the past you got values if not like this but close to this.
I get the logic, if you don't specify a frame, then there is none. But it is as practical as if you did that in the Designer
As I say, maybe there is a bigger picture going on here.

