Center popover above/under

fixed popover code to center popover around triggerElement when
placement is top or bottom
Merge pull request #20 from minimaximus/master

Center popover above/below