From faec57d263eadb8dd4313557f489703c1dd49728 Mon Sep 17 00:00:00 2001 From: "liz.li" Date: Mon, 21 Nov 2022 16:33:59 +0800 Subject: [PATCH] FIX:macos dailytips popup on wrong position Change-Id: Ic257073f38f51aa31132043538b412074e895ce0 --- src/slic3r/GUI/NotificationManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/NotificationManager.cpp b/src/slic3r/GUI/NotificationManager.cpp index 7317fb97b8..77887ccf28 100644 --- a/src/slic3r/GUI/NotificationManager.cpp +++ b/src/slic3r/GUI/NotificationManager.cpp @@ -2120,11 +2120,11 @@ void NotificationManager::render_notifications(GLCanvas3D &canvas, float overlay { sort_notifications(); - float last_y = bottom_margin; + float last_y = bottom_margin * m_scale; for (const auto& notification : m_pop_notifications) { if (notification->get_state() != PopNotification::EState::Hidden) { - notification->render(canvas, last_y * m_scale, m_move_from_overlay && !m_in_preview, overlay_width * m_scale, right_margin * m_scale); + notification->render(canvas, last_y, m_move_from_overlay && !m_in_preview, overlay_width * m_scale, right_margin * m_scale); if (notification->get_state() != PopNotification::EState::Finished) last_y = notification->get_top() + GAP_WIDTH; }