Solved! Go to Solution.
if (ctn.panelType == "bottom") { bottomContainerVisible = ctn.initialState == "collapsed" ? false : true; bcSize = ctn.size ? ctn.size : 250; bottomContainer = getBottomContainer(bcSize, bottomContainerVisible); bottomContainer.addEventListener(ResizeEvent.RESIZE, handleBottomContainerResize); bottomContainer.gap = 2; bcOrder = containerCount; } private function basewidget_initializeHandler():void
{
if (isPartOfPanel) // if widget is part of "left", "right" or "bottom" panel
{
this.percentWidth = this.percentHeight = 100;
wTemplate.percentWidth = wTemplate.percentHeight = 100;
}
else
{
wTemplate.width = map.width - map.width / 100 - Number(this.left);
wTemplate.minWidth = 800;
wTemplate.height = wTemplate.minHeight = 300;
}
}<widgetcontainer paneltype="bottom" initialstate="open" height="250">
<widget label="Attribute Table" height="400" config="widgets/AttributeTable/AttributeTableWidget.xml" url="widgets/AttributeTable/AttributeTableWidget.swf"/>
</widgetcontainer>
if (ctn.panelType == "bottom") { bottomContainerVisible = ctn.initialState == "collapsed" ? false : true; bcSize = ctn.size ? ctn.size : 250; bottomContainer = getBottomContainer(bcSize, bottomContainerVisible); bottomContainer.addEventListener(ResizeEvent.RESIZE, handleBottomContainerResize); bottomContainer.gap = 2; bcOrder = containerCount; }Instead of using height use size:
<widgetcontainer paneltype="bottom" initialstate="open" size="250">
This works without the need to change the source code.
Regards
Anthony
wTemplate.percentWidth = wTemplate.percentHeight = 150;