How to position a widget in the viewport and keep it responsive without a canvas panel?

i did this to get position of the slot:

FVector2D UInv_ItemSlot::GetSlotPosition() const { FGeometry Geometry = GetCachedGeometry(); FVector2D LocalLocation; FVector2D WidgetPosition = Geometry.AbsoluteToLocal(LocalLocation); UE_LOG(LogTemp, Warning, TEXT("Slot Position: X=%f, Y=%f"), WidgetPosition.X, WidgetPosition.Y); return WidgetPosition; }

and this in my hud to set position

if (UCanvasPanelSlot* ContextMenuSlot = Cast<UCanvasPanelSlot>(ContextMenuWidget->Slot)) { ContextMenuSlot->SetPosition(SlotPosition); }

but still didn’t work, here’s my hud:

i wanna set position of the context menu and item inspector, but the position i’m getting is wrong, my context menu don’t even appears anymore in my screen

the value that i’m getting in the ue log is different from the position that i simulated that is the right to position my widget in the canvas, and idk what to do