You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🅱️ Horizontal List Bug (Layout Problem for height)
create List horizontal with any data try to switch from portrait - landscape - portrait again
you will see thats list height is not updated correctly (cropped!) and sounds cache previous height for landscape
regarding some investigation i made console.log from inside _setFinalDimensions console.log(this._totalWidth, ' - ', this._totalHeight) recyclerlistview/dist/reactnative/core/layoutmanager/LayoutManager.js
1250 - 952
530 - 952
500 - 952
500 - 696
❌ 500 - 696 (should back again to correct height 952)
also if you tried that from (onLayout) you will see that width and height not updated correctly <FlashList onLayout={(event) => { console.warn(event.nativeEvent.layout.width, '-', event.nativeEvent.layout.height) }} horizontal
bug.webm
Expected behavior
List height should be full as it was in beginning before rotate.
To Reproduce
try to switch horizontalflashlist from portrait - landscape - portrait again
you will see list is cropped in height when back again to portrait
you can also check width and height from onLayout to check wrong values.
Current behavior
create List horizontal with any data try to switch from portrait - landscape - portrait again
you will see thats list height is not updated correctly (cropped!) and sounds cache previous height for landscape
regarding some investigation i made console.log from inside
_setFinalDimensions
console.log(this._totalWidth, ' - ', this._totalHeight)
recyclerlistview/dist/reactnative/core/layoutmanager/LayoutManager.js
1250 - 952
530 - 952
500 - 952
500 - 696
❌ 500 - 696 (should back again to correct height 952)
also if you tried that from (onLayout) you will see that width and height not updated correctly
<FlashList onLayout={(event) => { console.warn(event.nativeEvent.layout.width, '-', event.nativeEvent.layout.height) }} horizontal
bug.webm
Expected behavior
List height should be full as it was in beginning before rotate.
To Reproduce
try to switch
horizontal
flashlist
from portrait - landscape - portrait againyou will see list is cropped in height when back again to portrait
you can also check width and height from
onLayout
to check wrong values.Platform:
Environment
"@shopify/flash-list": "^1.4.1",
"expo": "~47.0.12",
The text was updated successfully, but these errors were encountered: