titanium-sdk icon indicating copy to clipboard operation
titanium-sdk copied to clipboard

iOS: ListView header flickers when being updated

Open jonasfunk opened this issue 1 year ago • 0 comments

I have searched and made sure there are no existing issues for the issue I am filing

  • [X] I have searched the existing issues

Description

Updating the header view of listview will cause it to flicker.

https://user-images.githubusercontent.com/1299558/212501809-11880a41-faa4-42b3-86be-ee636dc9f9c0.mov

Expected Behavior

The header view should not flicker

Actual behavior

The header view flickers

Reproducible sample

const win = Ti.UI.createWindow();

const headerView = Ti.UI.createView({ height: 200, backgroundColor: 'red' });

const listView = Ti.UI.createListView({ 
	headerView,
	sections: [ Ti.UI.createListSection({ items: [ {properties: { title: 'Apple'}},{properties: { title: 'Banana'}} ] }) ]
 });

setInterval(() => {
	headerView.height++;
}, 1000);
	

win.add(listView);

win.open();

Steps to reproduce

Install the code on a device (does not happen in simulator) and run it. The issue should be apparent. We've seen this on iPhone 13, but not on earlier versions.

Platform

No response

SDK version you are using

12.0.0.GA.

Alloy version you are using

2.0.1

jonasfunk avatar Jan 14 '23 23:01 jonasfunk