Added a data target attribute for auto-flip. Add to the dropdown menu and instead of looking for the window to decide to flip or not looks at the target.