Community
Participate
Working Groups
We have a toolbar that changes the text of its items or the size of a control, but this currently does not work to resize the toolbar accordingly. I have attached a snippet (toolbar with red background to see its size) wich can be used to reproduce this behaviour with some flags: A) You can click on any button to "blow up" the toolbar B) Now set forceLayout = true, it still fails to resize even if I request to layout the component (but might be I'm using the method wrong) C) set useAsyncRequest=true now the toolbar expands as desired I would exspect that I never have to call any layout methods and the example works tiht both flags set to false.
Created attachment 287466 [details] Snippet
I also see this issue in Linux/Debian so it might not be an Windows-Only issue. Any Mac user can check if this is the case under mac also?
(In reply to Christoph Laeubrich from comment #2) > I also see this issue in Linux/Debian so it might not be an Windows-Only > issue. Any Mac user can check if this is the case under mac also? Tested on macOS Monterey 12.01 x86_64. I had to set forceLayout and useAsyncRequest to true for the toolbar to resize.
(In reply to Phil Beauvoir from comment #3) > Tested on macOS Monterey 12.01 x86_64. > I had to set forceLayout and useAsyncRequest to true for the toolbar to > resize. Thanks for the verification!
Jörg, can you have a look?
(In reply to Lars Vogel from comment #5) > Jörg, can you have a look? Tested: does not relate to the ToolBar.computeSizeInPixels cache "return new Point (_width, _height)" Thats all i can contribute.