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

UITextField percentWidth/percentHeight setters doesnt work.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK Previous
    • None
    • MXML Scripting
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      1. Please compile this code.

      <?xml version="1.0"?>
      <!-- Simple example to demonstrate the ColumnChart and BarChart controls. -->
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" initialize="init()">

      <mx:Script>
      <![CDATA[
      import mx.core.UITextField;
      private function init():void

      { var uiTextField:UITextField = new UITextField(); uiTextField.mouseWheelEnabled = false; uiTextField.autoSize = TextFieldAutoSize.CENTER; uiTextField.wordWrap = true; uiTextField.multiline = true; uiTextField.percentHeight = 100; uiTextField.percentWidth = 100; uiTextField.text = "GIVES NO EXPRESS OR IMPLIED WARRANTIES OF ANY KIND, INCLUDING, "+ "BUT NOT LIMITED TO, ANY WARRANTIES OF MERCHANTABILITY OR FITNESS " + "FOR A PARTICULAR PURPOSE OR USE. IN NO EVENT SHALL XXX BE " + "LIABLE TO ANY PERSON OR ENTITY FOR ANY LIABILITY WHATSOEVER OR ANY " + "DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES IN CONNECTION " + "WITH OR RESULTING FROM ANY USE HEREOF."; somePanel.addChild(uiTextField); }

      ]]
      >

      </mx:Script>

      <mx:Panel width="100%" height="100%" id="somePanel"/>
      </mx:Application>

      2. Run application
      3. UITextField occupy not 100% in width.

      P.S. Reproduce int : IE6, FF2, FF3, IE7, Safari 3, Opera 9.5

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: