From 38a3b72b742bdcec4d89147d5e4794fbdb6e2be0 Mon Sep 17 00:00:00 2001 From: Yuriy Artamonov Date: Mon, 1 Oct 2018 14:10:05 +0400 Subject: [PATCH] Desktop screen caption component is not resized after its caption is changed #1251 --- .../cuba/desktop/gui/components/DesktopWindow.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/desktop/src/com/haulmont/cuba/desktop/gui/components/DesktopWindow.java b/modules/desktop/src/com/haulmont/cuba/desktop/gui/components/DesktopWindow.java index 98bc86e88a..39abd55e19 100644 --- a/modules/desktop/src/com/haulmont/cuba/desktop/gui/components/DesktopWindow.java +++ b/modules/desktop/src/com/haulmont/cuba/desktop/gui/components/DesktopWindow.java @@ -638,6 +638,13 @@ public class DesktopWindow implements Window, Component.Disposable, JTabbedPaneExt jTabbedPaneExt = getJTabbedPaneExt(); jTabbedPaneExt.setTitleAt(jTabbedPaneExt.getSelectedIndex(), formattedCaption); + + java.awt.Component tabHeaderComponent = jTabbedPaneExt.getTabComponentAt(jTabbedPaneExt.getSelectedIndex()); + if (tabHeaderComponent != null) { + tabHeaderComponent.invalidate(); + tabHeaderComponent.repaint(); + } + windowManager.getBreadCrumbs(tabWindow).update(); }