Libgdx Scene2d pack actor size

时间:2017-08-13 13:56:05

标签: libgdx scene2d

the button component

I have a table that I add buttons that I'm extending (to which I add labels in the constructor) and as you can see in the debug view (the bottom red line in the attached picture) I wish for the button to be sized according to the components within it (minimum size). I'm sure there's a simple way to do that in scene2d but I cant seem to find it..

0 个答案:

没有答案