Community
Participate
Working Groups
Hi, We are getting a problem using commands in the status bar. We're placing multiple commands and the last one is not displayed on the first connection. This does not seep to happen when we don't use FORCE_TEXT for the commands, so this may be related to some kind on text size determination issue. The bug that looks quite similar (bug #339334).
Created attachment 204498 [details] Project that reproduces thie problem Simple project based on the RAP mail demo that reproduces the problem.
Thanks for the snippet. I can reproduce the issue with your test project. The problem is more complicated than the bug 339334. Needs more investigation.
The issue is the following. Status line toolbar is created packed and it's size does not change afterwards. Text size determination is using an internal flag packed to re-pack the packed controls. This flag was cleared in Control#setBounds. As Control#setBounds is called from Control#setLocation (without changing the packed size), this flag was wrongly cleared. The fix is to clear the packed flag in Control#setBounds *only* if the control size changes. Changes are in CVS HEAD.
Created attachment 204786 [details] Proposed patch for v14_Maintenance branch
Applied patch to v14_Maintenance.