Ui-grid squashed in modal

When I have data to display in a modal window, it shows up squashed. I have tried ui-grid-auto-resize, but the refresh happens after window is closed, not before.

(Is there a working example to fix this? The modal example on ui-grid’s page is very hard wired/not factory friendly)