Fixes #1520 Issue when using named popup in different offset container