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

Setting height and width on a GraphicElement does not set minSize or maxSize

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • None
    • Spark: LayoutItem
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Compile & run the following:
      <mx:Application xmlns:mx="library:adobe/flex/halo" xmlns:m="http://ns.adobe.com/mxml/2009" xmlns="library:adobe/flex/gumbo" layout="vertical" width="800" height="800">
      <m:Script>
      <![CDATA[
      import flex.graphics.Ellipse;
      ]]
      >
      </m:Script>
      <m:Script>
      <![CDATA[

      private function getSize():void

      { minLbl.text = "minSize x: "+ p1.minSize.x.toString() + " y: " + p1.minSize.y.toString(); maxLbl.text = "maxSize x: " + p1.maxSize.x.toString() + " y: " + p1.maxSize.y.toString(); }

      ]]
      >
      </m:Script>
      <Group width="100%" id="g1" layout="flex.layout.VerticalLayout">
      <Ellipse id="p1" width="40" height="20">
      <fill>
      <mx:SolidColor color="0x00FF00"/>
      </fill>
      </Ellipse>
      </Group>
      <mx:Button click="getSize();" label="minSize and maxSize"/>
      <mx:Label id="minLbl" />
      <mx:Label id="maxLbl"/>
      </mx:Application>
      2. Click the Button 'minSize and maxSize'

      Actual Results:
      minSize still reports back 0,0
      maxSize still reports back 10000, 10000

      Expected Results:
      UIComponent reports minSize and maxSize as the explicit height & width that is set
      GraphicElement should do the same. (In this case 40, 20.)

      Workaround (if any):

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: