Artur Bodera (Joust)
9 Oct 2014, 12:10 AM
Another day, another Ext bug :-(
Tell me if you've already got this one filed or fixed, before I spend time on writing a fiddle.
Have a Tab panel (or any panel that hides and shows children)
Put a tree.Panel inside one of the tabs.
Load tree.Panel store.
Hide the tab (switch to another tab)
Reload store for tree.Panel twice (this is important as the first view refresh holds old dimensions).
Switch back to the Tab
The tree is empty.
... try to reload the store
... tree is still empty and will never work again.
The problem lies within BufferredRenderer and getLastVisibleRowIndex() which returns NaN in case the element is not visible (because me.rowHeight will get calculated as 0 and it will attempt division by zero).
Surprisingly it doesn't break normal grid.Panel that often, however it also happens sometimes.
Tell me if you've already got this one filed or fixed, before I spend time on writing a fiddle.
Have a Tab panel (or any panel that hides and shows children)
Put a tree.Panel inside one of the tabs.
Load tree.Panel store.
Hide the tab (switch to another tab)
Reload store for tree.Panel twice (this is important as the first view refresh holds old dimensions).
Switch back to the Tab
The tree is empty.
... try to reload the store
... tree is still empty and will never work again.
The problem lies within BufferredRenderer and getLastVisibleRowIndex() which returns NaN in case the element is not visible (because me.rowHeight will get calculated as 0 and it will attempt division by zero).
Surprisingly it doesn't break normal grid.Panel that often, however it also happens sometimes.