Panel - autosize

Hello,

I’d like to ask, if is it possible to set panel size on auto? When I get data from database(as you can see in the photo) panel component always has the same size. I’d like to do something that panel will be always filled by table and sets its size depending on the table.
11871.png

undefined size is the same as auto. try setting panel.setSizeUndefined() and panel.getContent().setSizeUndefined().