xbmc / Official-Kodi-Remote-iOS

Full-featured remote control for XBMC Media Center. It features library browsing, now playing informations and a direct remote control.
Other
224 stars 104 forks source link

Bugfix: Ensure correct cell height in heightForRowAtIndexPath #1156

Closed wutschel closed 1 month ago

wutschel commented 1 month ago

Method heightForRowAtIndexPath shall use same logic as inside cellForRowAtIndexPath.

Description

Fixes an issue reported in this forum post.

The cell re-use in Global Search is more sensitive as it shows different types of content with different cell layouts. This PR fixes an issue where the cell's height was mismatching between heightForRowAtIndexPath and the content used in cellForRowAtIndexPath. Now, both use the same logic to retrieve the cell's height.

Summary for release notes

Bugfix: Ensure correct cell height in heightForRowAtIndexPath