Check if the Popup is contained in the target and subtract its offset. Closes telerik/kendo-ui-core#166.