You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "gkk (JIRA)" <ji...@apache.org> on 2013/10/25 02:42:05 UTC

[jira] [Created] (FLEX-33845) Spark datagrid HorizontalScrollBar can disappear when datagrid is child of DividedBox

gkk created FLEX-33845:
--------------------------

             Summary: Spark datagrid HorizontalScrollBar can disappear when datagrid is child of DividedBox
                 Key: FLEX-33845
                 URL: https://issues.apache.org/jira/browse/FLEX-33845
             Project: Apache Flex
          Issue Type: Bug
          Components: mx: DividedBox, Spark: DataGrid
    Affects Versions: Apache Flex 4.12.0
         Environment: Flash Builder 4.7, Apache Flex Nightly Build on 10/24/13 (not official 4.12.0 release)
            Reporter: gkk
            Priority: Minor


Run the application below. When using mx:DividedBox and including spark datagrid as child, resizing the divided box, in some cases, doesn't draw the datagrid's horizontal scroll bar.

Originally saw in 4.10.0 using Flash Builder 4.7. Verified still in nightly build on 10/24/2013 (targeted for 4.12).

------ example code -------
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
			   xmlns:s="library://ns.adobe.com/flex/spark" 
			   xmlns:mx="library://ns.adobe.com/flex/mx" 
			   minWidth="600" minHeight="600">
	
	<fx:Declarations>
		<fx:String id="sampleText">Lorem Ipsum is the standard dummy text of the typesetting industry.</fx:String>
	</fx:Declarations>    
	
	<s:VGroup horizontalAlign="left" paddingLeft="30" paddingTop="30">
		
		<s:Label text="1. Click and drag divider bar lower to shrink height of datagrid"/>
		<s:Label text="    to display about 1.5 rows."/>
		<s:Label text="2. Notice the HorizontalScrollBar disappears for certain heights."/>
		
		<mx:DividedBox backgroundColor="0xaa0000" >
			<s:TextArea height="30" width="300" text="This is a text area."/>
			<s:DataGrid id="dg1" width="300">
				
				<s:columns>
					<s:ArrayList>
						<s:GridColumn dataField="value" headerText="Column 1" width="200"/>
						<s:GridColumn dataField="value" headerText="Column 2" width="200"/>	
					</s:ArrayList>
				</s:columns>
				
				<s:ArrayCollection>
					<s:DataItem value="{sampleText}"/>
					<s:DataItem value="{sampleText}"/>
					<s:DataItem value="{sampleText}"/>
				</s:ArrayCollection>
				
			</s:DataGrid>
		</mx:DividedBox>
		
			
	</s:VGroup>
</s:Application>



--
This message was sent by Atlassian JIRA
(v6.1#6144)