[UMG] How to find correct TexelSize for RetainerBox material?

I’m trying to make a material that will produce an outline around a text placed in a Retainer Box. I use the same approach as described here. This approach uses the texel size. In the case of a RetainerBox, it seems the TexelSize and ViewSize always refer to the size of the whole viewport and not the size of the RetainerBox widget. For example, in a 1920x1080 window the ViewSize is always 1920x1080, totally independent of the size of the RetainerBox widget. As a result the outline is deformed, like in the attached picture.

Is there any way to find the correct TexelSize or the size of the widget in the material?

109276-capture.png

I need that also. Have you ever found a way without using Blueprints?