2012-02-23 9 views
0

Flexアプリケーション内でモジュールを使用しています。私は、モジュールが親コンテナの幅と高さを取るように、幅と高さを100%に設定しようとしていますが、これはうまくいかないようです。Flexでモジュールの幅と高さを設定する際の問題

この問題に直面した人は誰ですか?モジュールの幅は既定のサイズに設定されており、スクロールバーも表示されます。 私のコードは以下の通りです

<s:BorderContainer width="100%" height="100%" id="T1"> 
     <s:BorderContainer visible="false" 
          visible.QuestionContainer="true" 
          width="100%" 
          height="100%" 
          id="qContainer" 
          borderVisible="false"> 
      <mx:ModuleLoader id="mod" url="M1.swf" width="200%" /> 
     </s:BorderContainer> 

     <mx:ProgressBar includeIn="Loading" x="283" y="176" labelPlacement="center" indeterminate="true" label="LOADING MODULE"/> 
     <s:Label includeIn="CloseState" text="You may close the window now" horizontalCenter="0" verticalCenter="0" color="#257E2D" fontWeight="bold" fontSize="20"/> 
     <mx:ProgressBar includeIn="Processing" horizontalCenter="0" verticalCenter="0" indeterminate="true" label="processing information" labelPlacement="center"/> 
    </s:BorderContainer> 

お助言ください。

おかげ

Aparna

答えて

0

私はこれがあなたに起こっている理由はわからないが、あなたは

<s:BorderContainer visible="false" 
          visible.QuestionContainer="true" 
          width="{T1.width}" 
          height="{T1.height}" 
          id="qContainer" 
          borderVisible="false"> 
      <mx:ModuleLoader id="mod" url="M1.swf" width="{qContainer.width}" /> 
     </s:BorderContainer> 

これがすべきcontainers.eg子供をレンダリングするためにデータバインディングを使用して試すことができ、これを解決するためにサイズ変更時に処理する必要がある場合は、サイズ変更ハンドラを追加して幅/高さを再計算することができます。

関連する問題