From 31f28345ea5eee693e88a5eb2253f400bf3b62e7 Mon Sep 17 00:00:00 2001 From: Ethan Hou Date: Thu, 28 May 2026 11:25:31 +0800 Subject: [PATCH] fix: Request layout update after setting markup in AgentStatusLabel --- .../com/microsoft/copilot/eclipse/ui/chat/AgentStatusLabel.java | 1 + .../com/microsoft/copilot/eclipse/ui/chat/ChatContentViewer.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/AgentStatusLabel.java b/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/AgentStatusLabel.java index 4979bfff..f10bfe9e 100644 --- a/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/AgentStatusLabel.java +++ b/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/AgentStatusLabel.java @@ -142,6 +142,7 @@ public void setText(String text) { AccessibilityUtils.addFocusBorderToComposite(styledText); } textLabel.setMarkup(text); + this.requestLayout(); } private enum Status { diff --git a/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/ChatContentViewer.java b/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/ChatContentViewer.java index 58ee3f5d..69cce58e 100644 --- a/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/ChatContentViewer.java +++ b/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/ChatContentViewer.java @@ -436,7 +436,6 @@ public void refreshScrollerLayout() { this.setMinHeight(contentHeight); this.setMinWidth(containerSize.x); - this.layout(true, true); } /**