Fix preview height issue in firefox