Not quite what I was looking for but I found a solution;
Basically, I set the content of the infowindow and measured the outer-most tag (in my case a table), then used these measurements with some padding to account for the rest of the dialog, to set the size of the infowindow. It also helped converting spaces in text to " "'s.