Fixed overflow of the result div

Fixed overflow issues