You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If uiTableModelInsertRow() is called on an active uiTable, the table will then try to fetch one row more than what the model provides.
If the table already has a lot of content, the invalid fetch won't occur until you scroll right down to bring the last row into view.
…ad of 1.
When LVM_INSERTITEM is called after we updated LVM_SETITEMCOUNT,
the actual count will be increased by one causing one extra item
to appear in the table and loading data from the model.
This extra item is invisible at first because it doesn't get painted but
you can click on it to confirm that it is actually there.
To fix this problem we need to call INSERTITEM first and
then update the ITEMCOUNT.
Fixesandlabs#416Fixesandlabs/ui#369
cc @bcampbell
r? @andlabs
If uiTableModelInsertRow() is called on an active uiTable, the table will then try to fetch one row more than what the model provides.
If the table already has a lot of content, the invalid fetch won't occur until you scroll right down to bring the last row into view.
Seems to be windows-specific.
example here:
https://github.com/bcampbell/libui/blob/destruc-table/examples/destruc-table/main.c
The text was updated successfully, but these errors were encountered: