It is unclear what you are doing.
Did you have a look at demo Demo\Basics\Treeview Accordion?
You can see in this demo that we add entire controls in the content area and the accordion height expands to fit the content.
What are you doing different?
The most efficient will be to provide us with a sample source app with which we can reproduce this here so we can investigate and recommend a solution.
I can add a new thing, just discovered. If I expand the section of the child accordion then collapse and expand again his parent section then everything is OK! I can see the entire content of the expanded section of the second accordion... I'll try to give you some source
...tried to set expanded:=true for the section just filled but I get an error
Uncaught TypeError: Cannot read property 'classList' of null | TypeError: Cannot read property 'classList' of null at Object.Expand (http://localhost:8000/Giasone4XDataPWA/Giasone4XDataPWA.js:46339:14) at Object.SetExpanded (http://localhost:8000/Giasone4XDataPWA/Giasone4XDataPWA.js:46107:92) at Object.WebAccordion2RenderSection (http://localhost:8000/Giasone4XDataPWA/Giasone4XDataPWA.js:156255:22) at Object.cb [as FOnRenderSection] (http://localhost:8000/Giasone4XDataPWA/Giasone4XDataPWA.js:226:19) at Object.RenderAccordion
Please provide a sample source project with which we can reproduce this.
Please just send a project by email.
You could control alignment with css attributes or insert HTML like <p align="right">...</p>
Thanks Bruno, already found a solution using float-right along with other classes in elementclassname for the button