1 Reply Latest reply on Nov 22, 2011 6:40 PM by Subeesh Arakkan

    The height of <mx:RichTextEditor > in VDividedBox cannot be reduced to less than 200.

    Johnking08

      I'm using <mx:VDividedBox >, in which there are a mx:RichTextEditor and mx:Image, as in the code below.

      When I dragged the divider of the VDividedBox to resize the heights of the Image and RichTextEditor, I found that the height of the

      RichTextEditor cannot be reduced to less than 200. Is this a bug?

       

      I replaced RichTextEditor with TextArea, then divider of VDividedBox works fine. I use Flash Builder 4.5. Please try the following code, and

      post you result here. Let's help Adobe to make Flex better.


      <?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="955" minHeight="600">


      <fx:Script><![CDATA[
        import mx.controls.Alert;
       
        [Bindable] public var imageSrc:String = "http://cseligman.com/text/sky/perigeeapogee.jpg";
       
        private function showHeight():void {
        
         Alert.show(this.rte.height.toString());
        }
      ]]></fx:Script>
        <mx:VDividedBox width="100%" height="100%" >
         <mx:Image id="image_edit" source="{this.imageSrc}" scaleContent="true"
             horizontalAlign="center" verticalAlign="bottom" width="100%" height="100%"
             />

         <mx:RichTextEditor id="rte"
             width="100%"
             text="The Moon.... Click me to show my height." click="showHeight()"/>
        </mx:VDividedBox>
      </s:Application>