Demo: Assets Browser: fixed not submitting anything after a SetCursorScreenPos() call when no items. Would not manifest because BeginMultiSelect() altered CursorMaxPos. (#5548)

cc: 2819ab32f8, edcd5b113e
This commit is contained in:
ocornut
2026-04-17 19:23:04 +02:00
parent 97939e6837
commit cdb046ac3f
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -11016,6 +11016,8 @@ struct ExampleAssetsBrowser
}
}
clipper.End();
if (Items.Size == 0)
ImGui::Dummy(ImVec2(0, 0));
ImGui::PopStyleVar(); // ImGuiStyleVar_ItemSpacing
// Context menu