Skip to content

Commit

Permalink
[ue4] Fix offset calculation of widgets, closes EsotericSoftware#1914
Browse files Browse the repository at this point in the history
  • Loading branch information
badlogic committed Jul 23, 2021
1 parent fbfbb9a commit 2824e22
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 2824e22

Please sign in to comment.