[popover] adding a repositioning behaviour #1129
[popover] adding sample to example panel