Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33846

spark datagrid horizontal scroll bar may not show when added as child of divided box

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Minor
    • Resolution: Unresolved
    • Apache Flex 4.10.0, Apache Flex 4.11.0
    • None
    • FB 4.7, SDK 4.10.0, SDK 4.11 rc2, SDK nightly build 10/24/2013

    Description

      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>

      Attachments

        Activity

          People

            Unassigned Unassigned
            modjklist gkk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: