Beamdog / nwn-issues

Neverwinter Nights: Enhanced Edition Technical Bug Tracker
http://nwn.beamdog.com
31 stars 1 forks source link

Nui Lists Throw Vector Error Upon Resizing List #427

Closed zunath closed 2 years ago

zunath commented 2 years ago

To Reproduce

Specifics

If needed, describe the bug

I believe this is an error with the way NUI resizes the element after its contents change. It's consistently reproduceable any time you have a bound list, scroll to the bottom of said list, and then update the bound list with a smaller set of items. If it helps, this issue was not present on 8193.33 and downgrading addresses the problem.

Nui_Vector_Repro.zip

Shad000w commented 2 years ago

This started happening quite frequently with NUIs that worked without issue previously in version .34 and it is very annoying.

zunath commented 2 years ago

Nui_Vector_Repro.zip

Daz has produced a workaround for the issue.

skill_window.nss: l96-97

mod_nui.nss: l84-87

zunath commented 2 years ago

Another workaround is to ensure your list size never reduces and instead make all items within the list are set to Visible = False.

Demo of this is shown here: https://cdn.discordapp.com/attachments/382306806866771980/975391210141278238/2022-05-15_15-35-50.mp4