From edb13c18e38e5edcd386184f7c73081be56f86a4 Mon Sep 17 00:00:00 2001 From: Soreepeong Date: Wed, 28 Feb 2024 00:00:10 +0900 Subject: [PATCH] more cleanup --- .../Internal/ActiveNotification.ImGui.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Dalamud/Interface/ImGuiNotification/Internal/ActiveNotification.ImGui.cs b/Dalamud/Interface/ImGuiNotification/Internal/ActiveNotification.ImGui.cs index 60e8e28e6..ac10cc060 100644 --- a/Dalamud/Interface/ImGuiNotification/Internal/ActiveNotification.ImGui.cs +++ b/Dalamud/Interface/ImGuiNotification/Internal/ActiveNotification.ImGui.cs @@ -360,6 +360,10 @@ internal sealed partial class ActiveNotification textColumnOffset.Y += NotificationConstants.ScaledComponentGap; this.DrawContentBody(textColumnOffset, textColumnWidth); + textColumnOffset.Y = ImGui.GetCursorPosY() + NotificationConstants.ScaledComponentGap; + + ImGui.SetCursorPos(textColumnOffset); + this.InvokeDrawActions(textColumnOffset, new(textColumnX + textColumnWidth, float.MaxValue)); } private void DrawIcon(Vector2 minCoord, Vector2 size) @@ -416,12 +420,6 @@ internal sealed partial class ActiveNotification ImGui.TextUnformatted(this.Content); ImGui.PopStyleColor(); ImGui.PopTextWrapPos(); - if (this.DrawActions is not null) - { - this.InvokeDrawActions( - minCoord with { Y = ImGui.GetCursorPosY() + NotificationConstants.ScaledComponentGap }, - new(minCoord.X + width, float.MaxValue)); - } } private void DrawExpiryBar(DateTime effectiveExpiry, bool warrantsExtension)