but im also trying to figure out the position of the popover based on my screen size, My popover should be placed at bottom by default but when there is no enough view point it should automatically re-position itself to either right, left or top. Any help would be appreciated.