Hi,
Created a vertical scrollView named scroll.
When adding items to the view, scrollHeight updates automatically, but when removing items, it doesnt.
Tried to fix it by running this after removing items:
local sv=scroll:getView() scroll:setScrollHeight(sv.contentHeight)
Printing the values show that numerically this is working.
However, as I remove items from the beginning/top of my scroll, I end up with empty space which I can scroll through.
I would think that by setting the scrollHeight to the new content value, empty space would be truncated/cropped/removed?
Is this wrong or is there a different approach to this?
Thx! Anaqim