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

FormItem label doesn't show when formItem visible and includeInLayout are set dynamically

    XMLWordPrintableJSON

Details

    Description

      In the following example

      <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">
      <fx:Script><![CDATA[
      [Bindable]
      public var show:Boolean;
      ]]></fx:Script>
      <s:HGroup>
      <mx:Form>
      <mx:FormItem label="test">
      <mx:TextInput text="test"/>
      </mx:FormItem>
      <mx:FormItem label="test">
      <mx:TextInput text="test"/>
      </mx:FormItem>
      <mx:FormItem label="test">
      <mx:TextInput text="test"/>
      </mx:FormItem>

      </mx:Form>
      <mx:Form>
      <mx:FormItem label="test" visible="

      {show}" includeInLayout="{show}

      ">
      <mx:TextInput text="test"/>
      </mx:FormItem>
      <mx:FormItem label="test" visible="

      {show}" includeInLayout="{show}

      ">
      <mx:TextInput text="test"/>
      </mx:FormItem>
      <mx:FormItem label="test" visible="

      {show}" includeInLayout="{show}

      ">
      <mx:TextInput text="test"/>
      </mx:FormItem>

      </mx:Form>
      </s:HGroup>
      <mx:Button click="show=!show" label="click me" bottom="5" right="5"/>
      </s:Application>

      Once you press the button, only the textInputs are shown in the second form.

      Attachments

        1. FLEX-34375.diff
          1 kB
          João Pedro Martins Fernandes

        Activity

          People

            aharui Alex Harui
            jfernandes João Pedro Martins Fernandes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1m
                1m
                Remaining:
                Remaining Estimate - 1m
                1m
                Logged:
                Time Spent - Not Specified
                Not Specified