UI|Client|PopupWidget: Clamp left edge to view's edge

When a popup opens to the left, make sure it doesn't go outside
the view.