haxeui / haxeui-core

The core library of the HaxeUI framework
http://haxeui.org
MIT License
346 stars 72 forks source link

Tableview default renderer with virtual true causes crash #416

Open hoseyjoe opened 3 years ago

hoseyjoe commented 3 years ago

The issue is that the default renderer tries to account for dynamic heights. When scrolling through large list this error appears. My fix was to create a custom renderer that was just a label.

Maybe the default renderer shouldnt wrap text in columns? or maybe this isnt an issue persay just a known.

haxe_ValueException {message: 'The validation queue returned too many times durin…ything that calls invalidate() during validation.', __previousException: undefined, __nativeException: haxe_ValueException, value: 'The validation queue returned too many times durin…ything that calls invalidate() during validation.'}
message: "The validation queue returned too many times during validation. This may be an infinite loop. Try to avoid doing anything that calls invalidate() during validation."
value: "The validation queue returned too many times during validation. This may be an infinite loop. Try to avoid doing anything that calls invalidate() during validation."
__nativeException: haxe_ValueException {message: 'The validation queue returned too many times durin…ything that calls invalidate() during validation.', __previousException: undefined, __nativeException: haxe_ValueException, value: 'The validation queue returned too many times durin…ything that calls invalidate() during validation.'}
__previousException: undefined
[[Prototype]]: Error
ianharrigan commented 3 years ago

Maybe the default renderer shouldnt wrap text in columns?

The problem is, that for non-virtual lists thats certainly desired behaviour. This came up in another project recently and, honestly, i didnt fine a good solution since wrapping means variable height, which doesnt work / make sense with virtual.

Ill continue to think about it...

Cheers, Ian