mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 01:17:00 +00:00
Combo: When peeking into the popup window for alignment we check if the window was active, which is more correct. (no known issue in current codebase, but we'll need that change for later)
This commit is contained in:
parent
06bea369c0
commit
e985baa35d
@ -9230,6 +9230,7 @@ bool ImGui::BeginCombo(const char* label, const char* preview_value, ImGuiComboF
|
|||||||
|
|
||||||
// Peak into expected window size so we can position it
|
// Peak into expected window size so we can position it
|
||||||
if (ImGuiWindow* popup_window = FindWindowByName(name))
|
if (ImGuiWindow* popup_window = FindWindowByName(name))
|
||||||
|
if (popup_window->WasActive)
|
||||||
{
|
{
|
||||||
ImVec2 size_contents = CalcSizeContents(popup_window);
|
ImVec2 size_contents = CalcSizeContents(popup_window);
|
||||||
ImVec2 size_expected = CalcSizeAfterConstraint(popup_window, CalcSizeAutoFit(popup_window, size_contents));
|
ImVec2 size_expected = CalcSizeAfterConstraint(popup_window, CalcSizeAutoFit(popup_window, size_contents));
|
||||||
|
Loading…
Reference in New Issue
Block a user