Here is a patch to set the width/height on the <img> tag when generating a chart using Google Charts. This can be helpful because your layout won't jump once the image finishes loading.

Personally, I encountered a problem putting a Google Chart (built by graphs_charts) in a dashboard widget using homebox. Homebox uses JavaScript to get the height of each widget on page load. When the chart isn't already cached by the browser, homebox gets the height wrong so the widget is cut off. This patch fixes this problem.

Please let me know what you think!

Regards,
David.

CommentFileSizeAuthor
google-img-size.patch646 bytesdsnopek