TabBar: Tweak shrinking policy so that while resizing tabs that don't need shrinking keep their initial width more precisely.

Has been the case before but adding support for SetNextItemWidth() #5262 made this more noticeable.
This commit is contained in:
ocornut
2022-06-21 17:11:51 +02:00
parent 4b97296148
commit c4b9101759
3 changed files with 12 additions and 6 deletions

View File

@ -1150,6 +1150,7 @@ struct ImGuiShrinkWidthItem
{
int Index;
float Width;
float InitialWidth;
};
struct ImGuiPtrOrIndex