问题
i have a handler that switch between perspectives, this handler change his text depending on a selection from other menu. I update the text using
@Override
public void updateElement(UIElement element, Map parameters){
String aux = Chip.getInstance().getVersion().substring(0, 1) + Chip.getInstance().getVersion().substring(1).toLowerCase();
element.setText(aux);
}
The text changes, but if the new text is a bit larger on the toolbar, all elements move to the right and remain hidden from the other toolbar. If I move the toolbar, this is rearranged and all controls are displayed.
toolbar in right position
toolbar after change text
来源:https://stackoverflow.com/questions/63173212/toolbar-not-resize-after-ielementupdater