Closed pkrysztofiak closed 4 years ago
I'm no expert on this library but it is expected that all Cells are same size. Just the way it was designed. Try to have different cell lengths and then try showing a certain index if you want to see it in action...
With this being noted, with the little tests I have run, regarding your code, I have noticed that the bottom cells are getting recreated when you press the button (because changing size of the cells); well really any where (I'd assume css settings when clicking things (probably regarding focus) changes the sizes of the nodes ever so slightly which is causing the bottom cell to be recreated). So you press the button, triggers events, those events are causing it to recreate the bottom cell(s), the node that was going to get the event is now off the scene graph thus it is not getting the event to toggle expanded.
Hello,but How Do you Get Clicked Item Or Cell ?
I'm trying to create list having expandable component inside cell. Everyting works great except from few last items on the list. Sometimes trying to expand/collapse has no effect. ActionEvent is never brought to handler as completly different button seems to be focused. Is there any chance I can get my feature working correctly? To reproduce please expand some element in the begining of the list, then scroll down to the bottom of the list and try to expand/collapse item using "Expand" button. Sometimes it takes few tries to reproduce.