From 8a0bb68c331ee6a2afb5bc2d2594426c3d634661 Mon Sep 17 00:00:00 2001 From: Lucinhu <78008990+lucinhu@users.noreply.github.com> Date: Thu, 27 Mar 2025 20:02:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=BE=AE=E4=BF=A1ui?= =?UTF-8?q?=E5=9C=A8=E6=B6=88=E6=81=AF=E6=95=B0=E9=87=8F=E8=B6=85=E8=BF=87?= =?UTF-8?q?=E4=B8=8A=E9=99=90=E5=90=8E=EF=BC=8C=E6=B0=94=E6=B3=A1=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E5=90=91=E4=B8=8A=E5=81=8F=E7=A7=BB=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#418)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/display/lcd_display.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/display/lcd_display.cc b/main/display/lcd_display.cc index 02bfe16e..852b6d1a 100644 --- a/main/display/lcd_display.cc +++ b/main/display/lcd_display.cc @@ -530,6 +530,9 @@ void LcdDisplay::SetChatMessage(const char* role, const char* content) { if (oldest_msg != nullptr) { lv_obj_del(oldest_msg); msg_count--; + // 删除最早的消息会导致所有气泡整体往上移 + // 所以需要重新滚动到当前消息气泡位置 + lv_obj_scroll_to_view_recursive(msg_bubble, LV_ANIM_ON); }else{ break; }