Fix resizeOnData for case where there is more than one grid in the page.