Fit width to content in Pop-up Element

My solution here: