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

DataGroup#drawBackground called before valid content size available

    XMLWordPrintableJSON

Details

    Description

      DataGroup call drawBackground before layout setup valid content size. This cause wrong mouseEnabledWhereTransparent behaviour when scrolling.
      Compile this:
      <?xml version="1.0"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:local="*">

      <s:DataGroup x="5" y="5" width="100" height="100" mouseEnabledWhereTransparent="true"
      mouseWheel="trace(event)" id="dataGroup"
      itemRenderer="spark.skins.spark.DefaultItemRenderer">
      <s:layout>
      <s:VerticalLayout clipAndEnableScrolling="true"/>
      </s:layout>
      <s:dataProvider>
      <s:ArrayList>
      <fx:String>1</fx:String>
      <fx:String>2</fx:String>
      <fx:String>3</fx:String>
      <fx:String>4</fx:String>
      <fx:String>5</fx:String>
      <fx:String>6</fx:String>
      <fx:String>7</fx:String>
      <fx:String>8</fx:String>
      <fx:String>9</fx:String>
      <fx:String>0</fx:String>
      <fx:String>10</fx:String>
      <fx:String>11</fx:String>
      <fx:String>12</fx:String>
      <fx:String>13</fx:String>
      <fx:String>14</fx:String>
      <fx:String>15</fx:String>
      <fx:String>16</fx:String>
      <fx:String>17</fx:String>
      <fx:String>18</fx:String>
      <fx:String>19</fx:String>
      <fx:String>20</fx:String>
      <fx:String>21</fx:String>
      <fx:String>22</fx:String>
      <fx:String>23</fx:String>
      <fx:String>24</fx:String>
      </s:ArrayList>
      </s:dataProvider>
      </s:DataGroup>

      <s:VScrollBar viewport="

      {dataGroup}

      " x="105" y="5" height="100"/>

      </s:Application>

      Move mouse on dataGroup (on empty space) and scroll with mouse wheel. Traces appear. Then scroll dataGroup to bottom and repeat scrolling with mouse wheel. There are no new traces, but they should be.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ChessMax Maxim Jurat
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: