Does Segment allow to access child widgets height and width

We have a requirement for setting image height and width based upon flex height and the flex widget is inside in Segment. I understand that when flex height and width are placed in a segment, they are not accessible.

Can you please confirm is there a way to access the height and width of segment child widgets?

For example:

The segment has multiple templates like below,
->flxTemplate1 ->flexContainer
->flxTemplate2 ->flexContainer


segmentobject.data[0].flexContainer.frame -- here we are getting undefined

Hi
Thanks for posting the question in the forum

To access the layout properties of widgets inside the segment you can call the doLayout() and in it's callback you can get the frame of the widget from which you can get your required properties.

myForm.button1.doLayout=doLayoutButton1;

function doLayoutButton1(){

myForm</span><span class="pun">.</span><span class="pln">button2</span><span class="pun">.</span><span class="pln">top </span><span class="pun">=</span><span class="pln"> myForm</span><span class="pun">.</span><span class="pln">button1</span><span class="pun">.</span><span class="pln">frame</span><span class="pun">.</span><span class="pln">height</span><span class="pun">;</span></pre>

FYI-->

https://opensource.hcltechsw.com/volt-mx-docs/docs/documentation/Iris/iris_widget_prog_guide/Content/Segment_Events.html