- resize height calculation function for plugin details modal