Toolbar not resize after IElementUpdater

隐身守侯 提交于 2021-02-11 14:41:48

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!