In my layout, the legend is placed between other elements. The scale bar is located above the legend and an overview map below it. You can see it in the screenshot below. The legend is expanded or reduced according to the map elements (red arrows). However, the following element (overview map) is static and does not follow the lower limit of the legend and is overrun.
Is it possible, to place elements dynamically according to the position and size of other elements?