Fit diagram to page on double click