[ue4] Fix offset calculation of widgets, closes #1914

This commit is contained in:
badlogic 2021-07-23 16:01:17 +02:00
parent fbfbb9a3f2
commit 2824e22846

View File

@ -196,7 +196,7 @@ void SSpineWidget::Flush(int32 LayerId, FSlateWindowElementList &OutDrawElements
self->renderData.VertexData.SetNumUninitialized(Vertices.Num());
FSlateVertex *vertexData = (FSlateVertex *) renderData.VertexData.GetData();
FVector2D offset = AllottedGeometry.AbsolutePosition;
FVector2D offset = AllottedGeometry.GetAbsolutePositionAtCoordinates(FVector2D(0.0f, 0.0f));
FColor white = FColor(0xffffffff);
const FSlateRenderTransform &Transform = AllottedGeometry.GetAccumulatedRenderTransform();