Position: Restore old flip collision handling
Position: Restore old flip collision handling

This reverts commit 7f808b2047725cd8fde51a948cb4e5f5946c82e1.

Fixes #8710
Ref gh-1071

GrayYoung/jQuery.UI.Extension,GrayYoung/jQuery.UI.Extension