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

Changing fillmode from 'clip' to 'fill' fails (but 'repeat' to 'fill' and all other combos seem to work)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: Adobe Flex SDK 4.1 (Release)
    • Fix Version/s: None
    • Component/s: Spark: Image
    • Labels:
      None
    • Environment:
      Affected OS(s): Windows
      Affected OS(s): Windows 7
      Browser: Firefox 3.x
      Language Found: English

      Description

      Steps to reproduce:
      Create a simple app that databinds the fillMode to a DropDownList (code below).

      Actual Results:
      Changing the combo from 'clip' to 'fill' doesn't execute the fill as expected (changing from 'fill to 'clip' or 'repeat' to 'fill' DOES work as expected).

      Expected Results:
      The mode should change from clip to fill.

      Example Code:
      <mx:Form>
      <mx:FormItem label="width/height">
      <s:TextInput id="widthHeightInput" text="600"/>
      </mx:FormItem>
      <mx:FormItem label="Fill Mode">
      <s:DropDownList id="fillModeInput" selectedIndex="1">
      <s:ArrayList>
      <fx:String>clip</fx:String>
      <fx:String>repeat</fx:String>
      <fx:String>fill</fx:String>
      </s:ArrayList>
      </s:DropDownList>
      </mx:FormItem>
      </mx:Form>

      <s:Rect width="

      {Number(widthHeightInput.text)}" height="{Number(widthHeightInput.text)}

      ">
      <s:stroke>
      <s:SolidColorStroke color="0xCCCCCC" weight="5"/>
      </s:stroke>
      <s:fill>
      <s:BitmapFill source="@Embed('test.jpg')" fillMode="

      {fillModeInput.selectedItem}

      "/>
      </s:fill>
      </s:Rect>

        Attachments

          Activity

            People

            • Assignee:
              adobejira Adobe JIRA
              Reporter:
              adobejira Adobe JIRA
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: