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; }
wTemplate.percentWidth = wTemplate.percentHeight = 150;
Instead of using height use size:<widgetcontainer paneltype="bottom" initialstate="open" size="250">This works without the need to change the source code.RegardsAnthony
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>
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.