Fitting a ListBox



I am trying to fit a ListBox exactly inside the parent window (i.e. the ListBox is the same size as the parent window). I was able to achieve this with the width by calling ImGui::PushItemWidth(-1) but am unclear how to do it with the height.

Thank you!


Use ListBoxHeader with a size of (-1,-1) probably.