Fix shaky close button on notification (#8431)

Update NotificationManager.cpp
This commit is contained in:
yw4z 2025-02-17 08:09:26 +03:00 committed by GitHub
parent 830c1ac928
commit d2c2c2ec9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -304,10 +304,10 @@ void NotificationManager::PopNotification::render(GLCanvas3D& canvas, float init
bbl_render_left_sign(imgui, win_size.x, win_size.y, win_pos.x, win_pos.y);
render_left_sign(imgui);
render_text(imgui, win_size.x, win_size.y, win_pos.x, win_pos.y);
render_close_button(imgui, win_size.x, win_size.y, win_pos.x, win_pos.y);
m_minimize_b_visible = false;
if (m_multiline && m_lines_count > 3)
render_minimize_button(imgui, win_pos.x, win_pos.y);
render_close_button(imgui, win_size.x, win_size.y, win_pos.x, win_pos.y); // ORCA draw it after minimize button since its position related to minimize button
}
imgui.end();