mirror of
https://gitee.com/jmix/cuba.git
synced 2024-11-30 02:07:41 +08:00
Desktop screen caption component is not resized after its caption is changed #1251
This commit is contained in:
parent
cbff27ac00
commit
38a3b72b74
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user