It’s possible I don’t entirely understand - perhaps you could give a few more details on what exactly you mean by auto-resize – but in general grafana panels are sized & placed in the dashboard via a “grid positioning system”.
This doesn’t automatically adjust (other than at the CSS level; panels will change size as you resize the browser for example). I could imagine a lot of problems stemming from automatic adjustment based on how grid items “flow” down the page, so it’s tricky to imagine this working in a way that would be desirable.
But one other thing to mention - the grid positioning is editable via the dashboard JSON, see this other answer for an example - and code could interact with the HTTP API to do this sort of thing if it’s desirable.