mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
The new strategy no longer relies on the parent. It works strictly top-to-bottom, looking inside child toolbars for resizable components. To make it work with the main toolbar, which isn't an ActionToolbar itself, but a regular panel, its layout, HorizontalLayout, had to be modified to accept an external function for calculating preferred sizes. The new strategy first collects all resizable components, including deeply nested ones, and then distributes the available size between them. Then calculating the sizes of toolbars and their components becomes trivial. GitOrigin-RevId: d11c47f010169b9175340ed9f0005822ddc4c346