Fix computation error, add check for left and right dropdowns and introduce container bounds setting