Scrollbar: layout needs to take account of window border size, so a border size will slightly reduce scrollbar size. (#2522)

Rework/revert intent of c1a61d25a.
This commit is contained in:
ocornut
2023-07-11 15:00:51 +02:00
parent 5ce636b0ba
commit b7cdb5a31e
2 changed files with 5 additions and 2 deletions

View File

@ -47,6 +47,9 @@ Other changes:
- InputText: Fixed a case where deactivation frame would write to underlying
buffer or call CallbackResize although unnecessary, in a frame where the
return value was false.
- Scrollbar: layout needs to take account of window border size, so a border size
will slightly reduce scrollbar size. Generally we tried to make it that window
border size has no incidence on layout but this can't work with thick borders. (#2522)
- IO: Added io.ClearEventsQueue() to clear incoming inputs events. (#4921)
May be useful in conjunction with io.ClearInputsKeys() if you need to clear
both current inputs state and queued events (e.g. when using blocking native