mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-18 21:20:57 +00:00
FIX:macos dailytips popup on wrong position
Change-Id: Ic257073f38f51aa31132043538b412074e895ce0
This commit is contained in:
1 parent
61c323d7cb
commit
faec57d263
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user