Rendering materials in slate

Hey, Epic

Our team needs to render a material in a slate widget and we managed to get
that working using a ICustomSlateElement but we’ve encountered a weird
problem - widget gets clipped when not positioned at (0, 0):

\

The grey area in the picture above should be occupied by the image but as you can see that’s not the case.
Here’s the relevant code (the version with correct offset) that was much inspired from the class FPreviewElement found in SGraphNodeMaterialBase.h

The only difference in between the two examples is the usage of:

    FVector2D Origin = FVector2D(0, 0);

instead of

    FVector2D Origin = RenderTransform.TransformPoint(FVector2D(0, 0));

at line 65.

What must be done in order to get the material drawn without clipping and at the correct position?

Cheers,