Fix vertical offset when title is empty

This commit is contained in:
Soreepeong 2024-02-25 05:57:22 +09:00
parent 2935d18c37
commit 8d15dfc031

View file

@ -461,10 +461,10 @@ internal sealed class ActiveNotification : IActiveNotification, IDisposable
{
ImGui.PushTextWrapPos(maxCoord.X);
ImGui.SetCursorPos(minCoord);
if ((this.Title ?? this.DefaultTitle) is { } title)
{
ImGui.PushStyleColor(ImGuiCol.Text, NotificationConstants.TitleTextColor);
ImGui.SetCursorPos(minCoord);
ImGui.TextUnformatted(title);
ImGui.PopStyleColor();
}