Fix popover position when using foreach binding

When using a foreach binding, the position of the popover is calculated
before binding is applied, so a smaller height is used and the popover
appears moved down relative to the trigger element.
This fix recalculate the position after the bind.