Skip navigation
duri2001
Currently Being Moderated

Flash Player 10,3,183,5にしてからAdvancedDataGridのheaderが縦に伸びる

Aug 18, 2011 6:12 PM

Flash Player 10,3,183,5にしてからAdvancedDataGridのheaderが縦に伸びる現象がある。

特に、AdvancedDataGridColumnGroupが含まれている場合イメージの様な現象が起きます。

なんとか早く解決してほしい

 

<?xml version="1.0"?>
<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">

    <fx:Script>
        <![CDATA[
            import mx.collections.ArrayCollection;

            [Bindable]
            private var dpFlat:ArrayCollection = new ArrayCollection([
                {Region:"Southwest", Territory:"Arizona", Territory_Rep:"Barbara Jennings", Actual1:38865, Actual2:38865, Actual3:38865, Actual4:38865, Actual5:38865, Actual6:38865, Actual7:38865, Actual8:38865, Actual9:38865, Actual10:38865, Estimate:40000},
                {Region:"Southwest", Territory:"Arizona", Territory_Rep:"Barbara Jennings", Actual1:38865, Actual2:38865, Actual3:38865, Actual4:38865, Actual5:38865, Actual6:38865, Actual7:38865, Actual8:38865, Actual9:38865, Actual10:38865, Estimate:40000},
                {Region:"Southwest", Territory:"Arizona", Territory_Rep:"Barbara Jennings", Actual1:38865, Actual2:38865, Actual3:38865, Actual4:38865, Actual5:38865, Actual6:38865, Actual7:38865, Actual8:38865, Actual9:38865, Actual10:38865, Estimate:40000},
                {Region:"Southwest", Territory:"Arizona", Territory_Rep:"Barbara Jennings", Actual1:38865, Actual2:38865, Actual3:38865, Actual4:38865, Actual5:38865, Actual6:38865, Actual7:38865, Actual8:38865, Actual9:38865, Actual10:38865, Estimate:40000},
                {Region:"Southwest", Territory:"Arizona", Territory_Rep:"Barbara Jennings", Actual1:38865, Actual2:38865, Actual3:38865, Actual4:38865, Actual5:38865, Actual6:38865, Actual7:38865, Actual8:38865, Actual9:38865, Actual10:38865, Estimate:40000},
                {Region:"Southwest", Territory:"Arizona", Territory_Rep:"Barbara Jennings", Actual1:38865, Actual2:38865, Actual3:38865, Actual4:38865, Actual5:38865, Actual6:38865, Actual7:38865, Actual8:38865, Actual9:38865, Actual10:38865, Estimate:40000},
                {Region:"Southwest", Territory:"Arizona", Territory_Rep:"Barbara Jennings", Actual1:38865, Actual2:38865, Actual3:38865, Actual4:38865, Actual5:38865, Actual6:38865, Actual7:38865, Actual8:38865, Actual9:38865, Actual10:38865, Estimate:40000},
                {Region:"Southwest", Territory:"Arizona", Territory_Rep:"Barbara Jennings", Actual1:38865, Actual2:38865, Actual3:38865, Actual4:38865, Actual5:38865, Actual6:38865, Actual7:38865, Actual8:38865, Actual9:38865, Actual10:38865, Estimate:40000},
                {Region:"Southwest", Territory:"Arizona", Territory_Rep:"Barbara Jennings", Actual1:38865, Actual2:38865, Actual3:38865, Actual4:38865, Actual5:38865, Actual6:38865, Actual7:38865, Actual8:38865, Actual9:38865, Actual10:38865, Estimate:40000},
                {Region:"Southwest", Territory:"Arizona", Territory_Rep:"Barbara Jennings", Actual1:38865, Actual2:38865, Actual3:38865, Actual4:38865, Actual5:38865, Actual6:38865, Actual7:38865, Actual8:38865, Actual9:38865, Actual10:38865, Estimate:40000},
                {Region:"Southwest", Territory:"Arizona", Territory_Rep:"Barbara Jennings", Actual1:38865, Actual2:38865, Actual3:38865, Actual4:38865, Actual5:38865, Actual6:38865, Actual7:38865, Actual8:38865, Actual9:38865, Actual10:38865, Estimate:40000},
                {Region:"Southwest", Territory:"Arizona", Territory_Rep:"Barbara Jennings", Actual1:38865, Actual2:38865, Actual3:38865, Actual4:38865, Actual5:38865, Actual6:38865, Actual7:38865, Actual8:38865, Actual9:38865, Actual10:38865, Estimate:40000},
                {Region:"Southwest", Territory:"Arizona", Territory_Rep:"Barbara Jennings", Actual1:38865, Actual2:38865, Actual3:38865, Actual4:38865, Actual5:38865, Actual6:38865, Actual7:38865, Actual8:38865, Actual9:38865, Actual10:38865, Estimate:40000},
            ]);
        ]]>
    </fx:Script>

    <mx:Panel title="AdvancedDataGrid Control Example"
              height="75%" width="75%" layout="horizontal"
              paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">

        <mx:AdvancedDataGrid id="myADG"
                             width="100%" height="100%" dataProvider="{dpFlat}" headerWordWrap="true" editable="true"
                             verticalScrollPolicy="auto" horizontalScrollPolicy="auto"
                             sortExpertMode="false" showScrollTips="true"
                             doubleClickEnabled="false">
            <mx:groupedColumns>
                <mx:AdvancedDataGridColumn dataField="Region" headerText="headerWordWrapを使っているとこんな感じで縦にヘッダー伸びる"/>
                <mx:AdvancedDataGridColumn dataField="Actual1"/>
                <mx:AdvancedDataGridColumn dataField="Actual2"/>
                <mx:AdvancedDataGridColumn dataField="Actual3"/>
                <mx:AdvancedDataGridColumn dataField="Actual4"/>
                <mx:AdvancedDataGridColumn dataField="Actual5"/>
                <mx:AdvancedDataGridColumn dataField="Actual6"/>
                <mx:AdvancedDataGridColumn dataField="Actual7"/>
                <mx:AdvancedDataGridColumn dataField="Actual8"/>
                <mx:AdvancedDataGridColumn dataField="Actual9"/>
                <mx:AdvancedDataGridColumn dataField="Actual10"/>
                <mx:AdvancedDataGridColumn dataField="Estimate"/>
                <mx:AdvancedDataGridColumnGroup headerText="Territory">
                    <mx:AdvancedDataGridColumn dataField="Territory"/>
                    <mx:AdvancedDataGridColumn dataField="Territory_Rep" headerText="Territory Rep"/>
                </mx:AdvancedDataGridColumnGroup>


            </mx:groupedColumns>

        </mx:AdvancedDataGrid>
    </mx:Panel>

</s:Application>

 

bug.png

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points