Skip to content

Commit 8192766

Browse files
committed
Notify: fix positioning
1 parent 6e34636 commit 8192766

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/overlay/notifications.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ class Notifications
7575

7676
ImGui::SetNextWindowPos(ImVec2(startX, curY));
7777

78-
curY += windowSize.y + notificationSpacing;
79-
8078
std::string windowName = "Notification " + std::to_string(i);
8179
ImGui::Begin(windowName.c_str(), nullptr, ImGuiWindowFlags_NoDecoration |
8280
ImGuiWindowFlags_NoNav | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoInputs |
@@ -91,6 +89,8 @@ class Notifications
9189

9290
ImGui::SetWindowSize(windowSize);
9391

92+
curY += windowSize.y + notificationSpacing;
93+
9494
// Center text with padding
9595
float paddingX = 10.0f, paddingY = 5.0f;
9696
float offsetX = (windowSize.x - textSize.x) / 2.0f;

0 commit comments

Comments
 (0)