|
@@ -8206,15 +8206,10 @@ void ImGuiSelectionExternalStorage::ApplyRequests(ImGuiMultiSelectIO* ms_io)
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
|
// This is essentially a thin wrapper to using BeginChild/EndChild with the ImGuiChildFlags_FrameStyle flag for stylistic changes + displaying a label.
|
|
|
-// This handle some subtleties with capturing info from the label, but for 99% uses it could essentially be rewritten as:
|
|
|
-// if (ImGui::BeginChild("...", ImVec2(ImGui::CalcItemWidth(), ImGui::GetTextLineHeight() * 7.5f), ImGuiChildFlags_FrameStyle))
|
|
|
-// { .... }
|
|
|
-// ImGui::EndChild();
|
|
|
-// ImGui::SameLine();
|
|
|
-// ImGui::AlignTextToFramePadding();
|
|
|
-// ImGui::Text("Label");
|
|
|
+// This handle some subtleties with capturing info from the label.
|
|
|
+// If you don't need a label you can pretty much directly use ImGui::BeginChild() with ImGuiChildFlags_FrameStyle.
|
|
|
// Tip: To have a list filling the entire window width, use size.x = -FLT_MIN and pass an non-visible label e.g. "##empty"
|
|
|
-// Tip: If your vertical size is calculated from an item count (e.g. 10 * item_height) consider adding a fractional part to facilitate seeing scrolling boundaries (e.g. 10.25 * item_height).
|
|
|
+// Tip: If your vertical size is calculated from an item count (e.g. 10 * item_height) consider adding a fractional part to facilitate seeing scrolling boundaries (e.g. 10.5f * item_height).
|
|
|
bool ImGui::BeginListBox(const char* label, const ImVec2& size_arg)
|
|
|
{
|
|
|
ImGuiContext& g = *GImGui;
|