You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Maxim Jurat (JIRA)" <ji...@apache.org> on 2013/12/27 07:41:51 UTC
[jira] [Created] (FLEX-34017) DataGroup#drawBackground called
before valid content size available
Maxim Jurat created FLEX-34017:
----------------------------------
Summary: DataGroup#drawBackground called before valid content size available
Key: FLEX-34017
URL: https://issues.apache.org/jira/browse/FLEX-34017
Project: Apache Flex
Issue Type: Bug
Components: Spark: DataGroup
Affects Versions: Apache Flex 4.11.0
Reporter: Maxim Jurat
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.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)