We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e34636 commit 8192766Copy full SHA for 8192766
src/overlay/notifications.hpp
@@ -75,8 +75,6 @@ class Notifications
75
76
ImGui::SetNextWindowPos(ImVec2(startX, curY));
77
78
- curY += windowSize.y + notificationSpacing;
79
-
80
std::string windowName = "Notification " + std::to_string(i);
81
ImGui::Begin(windowName.c_str(), nullptr, ImGuiWindowFlags_NoDecoration |
82
ImGuiWindowFlags_NoNav | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoInputs |
@@ -91,6 +89,8 @@ class Notifications
91
89
92
90
ImGui::SetWindowSize(windowSize);
93
+ curY += windowSize.y + notificationSpacing;
+
94
// Center text with padding
95
float paddingX = 10.0f, paddingY = 5.0f;
96
float offsetX = (windowSize.x - textSize.x) / 2.0f;
0 commit comments