From ed22622ecd906b2640fb774f2f5568cf605a5584 Mon Sep 17 00:00:00 2001 From: Slendi Date: Sat, 20 Sep 2025 02:27:59 +0300 Subject: [PATCH] irc: trigger ScrollTextWidget updateScrollBar after appending to force immediate repaint on send Signed-off-by: Slendi --- main.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.lua b/main.lua index b07c7fa..11f3437 100644 --- a/main.lua +++ b/main.lua @@ -270,6 +270,10 @@ function IrcChatView:appendLine(line, target) if self._ui_open and self.scroll_text_w and self.scroll_text_w.text_widget then self.scroll_text_w.text_widget:setText(buf) self.scroll_text_w:scrollToBottom() + -- Ensure ScrollTextWidget refreshes its scrollbar & triggers a repaint + if self.scroll_text_w.updateScrollBar then + self.scroll_text_w:updateScrollBar(true) + end if UIManager and self.frame and self.frame.dimen then UIManager:setDirty(self, function() return "ui", self.frame.dimen end) end