circular-carousel icon indicating copy to clipboard operation
circular-carousel copied to clipboard

heightForRowAt on main table view issue

Open mhdjazmati opened this issue 5 years ago • 2 comments

hello,

im trying to modify the sample provided.

in the sample, there is the main table view contains 3 rows 0, 1 the buttons carousel, 2 the scrolling table "tableCarousel".

the main table heightForRowAt predefined the scrolling table "tableCarousel" row to fit all of the 10 items of tableCarousel.

now after I load data I changed the tableCarousel items to 5 but the main table heightForRowAt still predefined to 10 items and that's make a large white space.

i tried many solutions, I can't update the main heightForRowAt to fit my new data in realtime so i need to reload data and its not an option because reload data reset everything, the 5 tableCarousel too. how to achieve a flexible size of the 3rd-row "tableCarousel" so it can fit whatever data i pass to it ???

please help and if you didn't get my problem please tell me I could explain more.

mhdjazmati avatar Jul 10 '19 03:07 mhdjazmati

@mhdjazmati have you tried updating the heightForRow when you scroll to the new Button Item. This can be animated or set without animation.

realityworks avatar Jul 22 '19 10:07 realityworks

hello, can you please provide me with a code or explain more? thank you so much

mhdjazmati avatar Nov 04 '19 13:11 mhdjazmati