Use offset instead of position when dropdown parent is body and position with dropdown parent is not body.