FYI - This event itemsCreated is being dispatched from different place, so it is called in the end, but at least one less than it should. I will check tomorrow what place dispatch it, but it is definitely happen after items are created.
On Wed, 20 Apr 2022 at 10:56, Piotr Zarzycki <piotrzarzyck...@gmail.com> wrote: > Hello guys, > > I'm struggling with changes > inside DataItemRendererFactoryForICollectionViewAdvancedDataGridData. > Basically I have removed dispatch of "itemsCreated". > 1) Here "itemsCreated" is being dispatch [1] and along the line it call > handler inside DataContainerView where "layoutNeeded" is being called [2] > 2) Next line inside > DataItemRendererFactoryForICollectionViewAdvancedDataGridData > is super.dataProviderChangeHandler(event) where "layoutNeeded" is being > called again > > In the other words line by line we are calling layoutNeeded - in some > cases it really messes up items display in ADG. I think these changes are > needed, but if you see some case where I'm breaking something let me know. > > [1] > https://github.com/apache/royale-asjs/commit/de2fb81e06d979ed5ecf08c669cf6923d0aa7274 > [2] > https://github.com/apache/royale-asjs/blob/de2fb81e06d979ed5ecf08c669cf6923d0aa7274/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/DataContainerView.as#L109 > > Thanks, > -- > > Piotr Zarzycki > -- Piotr Zarzycki