Ashokkumar Balasubramanian,
The information you provided was very helpful in understanding how sizing works; however, when I attempted to apply this knowledge to resize my panels, I encountered difficulties.
The template that I used for my :content property of the e-panel actually grew outside of the height of the panel and was not able to resize. When attempting to grab the size of the content within the panel, I always received the same pixel value and thus was never able to resize the panel to fit the content. Looking at how the panel rendered, it seems as if the template component that is rendered as content actually renders on top of the panel as opposed to within it. I believe this is causing the template component to render past the panel and thus does not effect the. offsetHeight property of the panel. Since the templates that I am rendering inside the panels are dynamic and will change in height, I need to be able to resize the panel to fit the content within the template component; however, I am not able to do so due to the .offsetHeight property not taking into account the content within the :content property of the panel.
How do I supply the :content key a template component such that it will render the template within the panel as opposed to on top of it? Without being able to do this, I do not see how I would be able to dynamically resize the panel. Additionally, how do I render content within the panel such that calling the .offsetHeight property of the panel will give me the true height of the elements within it?
Below is a code example of the template component that I am using and an image demonstrating how it is rendered:
Code Example:
Panel code:
<e-panel
id="testPanel"
v-if="'true'"
:row="0"
:col="4"
:sizeX="8"
:sizeY="3"
header="<div class='e-header-text'>Test Panel</div><div class='header-border'></div>"
:content="testPanelTemplate">
</e-panel>
testPanelTemplate code:
<template>
<div style="display:block; width:100%; height:100%;">
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
<p>test</p>
</div>
</template>
<script>
export default {};
</script>
Rendered e-panel with above template set as the :content property:

Thanks,
Chris