nihavend opened a new issue #764: component has zero height although it has value URL: https://github.com/apache/royale-asjs/issues/764  xml data file used for test : [click ](https://drive.google.com/open?id=1A38ZUEDUABO38fyC2IITohadhfKQ8cID) Here is the source for the case : ``` <?xml version="1.0" encoding="latin5" ?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.apache.org/royale/spark" xmlns:mx="library://ns.apache.org/royale/mx" height="600" width="800" creationComplete="group1_creationCompleteHandler(event)"> <fx:Declarations> <fx:XML id="jobListXml" source="D:\dev\royale-emulation-works\github\royale-testing\src\main\old\joblist.xml" /> </fx:Declarations> <fx:Metadata> [ResourceBundle("messages")] </fx:Metadata> <fx:Script> <![CDATA[ import mx.events.FlexEvent; import mx.events.ListEvent; import mx.resources.ResourceManager; import mx.collections.XMLListCollection; import mx.collections.ArrayCollection; import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn; import spark.components.gridClasses.GridColumn; private const detailPanelDefHeight:int = 240; [Bindable] public var selectedNetTreeId:String; [Bindable] public var jobListXmlCollection:XMLListCollection = new XMLListCollection(); protected function group1_creationCompleteHandler(event:FlexEvent):void { jobListXmlCollection.source = jobListXml.children(); } private function rowSelectionChangedHandler(currentDataItem:Object):void { refreshData(XML(currentDataItem)); detailPanel.visible = true; detailPanel.includeInLayout = true; } public function refreshData(jobDetailXml:XML):void { jobCommand.text = jobDetailXml.baseJobInfos.jobTypeDetails.jobCommand; jobLogFile.text = "" + jobDetailXml.baseJobInfos.jobLogPath + jobDetailXml.baseJobInfos.jobLogFile; prevDuration.text = jobDetailXml.runtimeParams.previousDuration; argValues.text = jobDetailXml.baseJobInfos.jobTypeDetails.argValues; var prevDur:Number = Number(prevDuration.text); var realDur:Number = Number(jobDetailXml.runtimeParams.realizedDuration); if(!isNaN(prevDur) && !isNaN(realDur)) { diffDuration.text = "" + (realDur - prevDur); } else { diffDuration.text = "-"; } restartable.text = jobDetailXml.management.cascadingConditions.jobSafeToRestart; dzGroup.text = jobDetailXml.@dangerZoneGroupId; handlerURI.text = jobDetailXml.@handlerURI; if(jobDetailXml.runtimeParams.hasJobLog == "false") { showJobLog.visible = false; showJobLog.includeInLayout = false; dontShowJobLog.visible = true; dontShowJobLog.includeInLayout = true; } else { showJobLog.visible = true; showJobLog.includeInLayout = true; dontShowJobLog.visible = false; dontShowJobLog.includeInLayout = false; } if(jobDetailXml.runtimeParams.hasJobContent == "false") { showJobContent.visible = false; showJobContent.includeInLayout = false; dontShowJobContent.visible = true; dontShowJobContent.includeInLayout = true; } else { showJobContent.visible = true; showJobContent.includeInLayout = true; dontShowJobContent.visible = false; dontShowJobContent.includeInLayout = false; } } private function toggleTreeComp():void { if(toggleTree.toolTip == ResourceManager.getInstance().getString('messages', 'jobSummaryPanelColpBut')) { toggleTree.toolTip = ResourceManager.getInstance().getString('messages', 'jobSummaryPanelExpand'); toggleTree.label = ResourceManager.getInstance().getString('messages', 'jobSummaryPanelExpand'); detailPanel.height = 25; } else { toggleTree.toolTip = ResourceManager.getInstance().getString('messages', 'jobSummaryPanelColpBut'); toggleTree.label = ResourceManager.getInstance().getString('messages', 'jobSummaryPanelColpBut'); detailPanel.height = detailPanelDefHeight; } } protected function selectionChangeHandlerPinara(event:ListEvent):void { var currentDataItem:Object = event.currentTarget.selectedItem; rowSelectionChangedHandler(currentDataItem); } public function getId(item:XML, column:AdvancedDataGridColumn):String { return item.@Id; } public function getJsName(item:XML, column:AdvancedDataGridColumn):String { return item.baseJobInfos.jsName; } public function getGroupId(item:XML, column:AdvancedDataGridColumn):String { return item.@groupId; } ]]> </fx:Script> <s:VGroup paddingTop="0" width="100%" height="100%"> <!-- Create a Spark ButtonBar control to navigate the ViewStack container. --> <s:TabBar id="tabNavigator" dataProvider="{myViewStack}" width="100" height="21"/> <!-- Define the ViewStack and the three child containers. --> <mx:ViewStack id="myViewStack" borderStyle="none" width="100%" height="100%"> <s:NavigatorContent id="jobListGridTab" label="{resourceManager.getString('messages', 'jobListGridTabLabel')}" width="100%" height="100%"> <s:layout> <s:VerticalLayout/> </s:layout> <mx:AdvancedDataGrid id="pinaraJobList" width="100%" height="100%" dataProvider="{jobListXmlCollection}" change="selectionChangeHandlerPinara(event)"> <mx:columns> <mx:AdvancedDataGridColumn labelFunction="getId" headerText="{resourceManager.getString('messages', 'jobIdGrid')}" sortDescending="false" width="{this.pinaraJobList.width * 0.06}" /> <mx:AdvancedDataGridColumn labelFunction="getJsName" headerText="{resourceManager.getString('messages', 'jobNameGrid')}" width="{this.pinaraJobList.width * 0.10}" /> <mx:AdvancedDataGridColumn labelFunction="getGroupId" headerText="{resourceManager.getString('messages', 'jobGrupIdGrid')}" width="{this.pinaraJobList.width * 0.10}"/> </mx:columns> </mx:AdvancedDataGrid> <s:Panel id="detailPanel" title="{resourceManager.getString('messages', 'jobSummaryDetailPanel')}" height="{detailPanelDefHeight}" width="100%" visible="false" includeInLayout="false"> <s:Button id="toggleTree" y="-27" right="10" width="80" click="toggleTreeComp()" toolTip="Collapse" label="{resourceManager.getString('messages', 'jobSummaryPanelColpBut')}"/> <s:Scroller id="scrooler_id" width="100%" height="100%"> <s:HGroup id="hgroup_id" width="100%" paddingLeft="10" height="100"> <!-- Base Info Detail Panel --> <s:VGroup paddingTop="5"> <!-- Create a Spark ButtonBar control to navigate the ViewStack container. --> <s:TabBar id="tabNavigator1" dataProvider="{myViewStack}"/> <!-- Define the ViewStack and the three child containers. --> <mx:ViewStack id="myViewStack1" borderStyle="solid" width="100%" height="160"> <s:NavigatorContent id="search" label="{resourceManager.getString('messages', 'jobBaseInfoTabLabel')}"> <s:HGroup width="100%" > <s:VGroup paddingLeft="5" paddingRight="5" gap="-10" width="100%"> <s:HGroup verticalAlign="middle" paddingTop="15"> <s:Label text="{resourceManager.getString('messages', 'jobCommandText')}" width="105"/> <s:TextInput id="jobCommand" top="5" editable="false" width="95"/> <s:Image id="showJobContent" source="images/logfile_s.png" toolTip="{resourceManager.getString('messages', 'commandFileTooltip')}" buttonMode="true" visible="false" includeInLayout="false" /> <s:Image id="dontShowJobContent" source="images/noLogfile_s.png" toolTip="{resourceManager.getString('messages', 'noCommandFileTooltip')}"/> <s:Label text="{resourceManager.getString('messages', 'dzGroupIdLabel')}" width="105" paddingLeft="10" /> <s:TextInput id="dzGroup" top="5" editable="false"/> </s:HGroup> <s:HGroup verticalAlign="middle" paddingTop="15"> <s:Label text="{resourceManager.getString('messages', 'jobLogFileLabel')}" width="105"/> <s:TextInput id="jobLogFile" top="5" editable="false" width="95"/> <s:Image id="showJobLog" source="images/logfile_s.png" toolTip="{resourceManager.getString('messages', 'logFileTooltip')}" buttonMode="true" visible="false" includeInLayout="false"/> <s:Image id="dontShowJobLog" source="images/noLogfile_s.png" toolTip="{resourceManager.getString('messages', 'noLogFileTooltip')}" /> <s:Label text="{resourceManager.getString('messages', 'jobRestartableLabel')}" width="105" paddingLeft="10" /> <s:TextInput id="restartable" top="5" editable="false"/> </s:HGroup> <s:HGroup verticalAlign="middle" paddingTop="15"> <s:Label text="{resourceManager.getString('messages', 'jobPreviousDurationLabel')}" width="105"/> <s:TextInput id="prevDuration" top="5" editable="false" width="95"/> <s:Image id="showJobBuff" source="images/logfile_s.png" toolTip="{resourceManager.getString('messages', 'errBuffTooltip')}" buttonMode="true" top="0"/> <s:Label text="{resourceManager.getString('messages', 'jobParameterLabel')}" width="105" paddingLeft="10" /> <s:TextInput id="paramValue" top="5" editable="false"/> </s:HGroup> <s:HGroup verticalAlign="baseline" paddingTop="15"> <s:Label text="{resourceManager.getString('messages', 'jobDiffDurationLabel')}" width="105"/> <s:TextInput id="diffDuration" top="5" editable="false" width="95"/> <s:Label text="{resourceManager.getString('messages', 'jobArgsLabel')}" width="65"/> <s:TextInput id="argValues" top="5" editable="false" width="140"/> <s:Button y="-27" right="290" label="{resourceManager.getString('messages', 'jobEditButtonLabel')}" width="50"/> </s:HGroup> <s:HGroup verticalAlign="baseline" paddingTop="15"> <s:Label text="{resourceManager.getString('messages', 'jobHandlerUriLabel')}" width="105" /> <s:TextInput id="handlerURI" top="5" editable="false" width="300"/> </s:HGroup> </s:VGroup> </s:HGroup> </s:NavigatorContent> </mx:ViewStack> </s:VGroup> </s:HGroup> </s:Scroller> </s:Panel> </s:NavigatorContent> </mx:ViewStack> </s:VGroup> </s:Application> ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
