Skip to content

Combo popup flickering near screen edge #6207

@Vin789

Description

@Vin789

Version/Branch of Dear ImGui:

Version: 1.89.4 WIP (18931)
Branch: https://github.com/ocornut/imgui/tree/docking

Back-end/Renderer/Compiler/OS

Back-ends: imgui_impl_opengl3.cpp + imgui.impl_sdl2.cpp
Operating System: Windows 10
SDL Version: SDL2-2.24.0

My Issue/Question:

I have an issue with combo popup that are near other window edge. It seems that the position of the combo list (a popup) is screen dependent. You can see a simple exemple with the code of the demo (using the combo inside the modal popup menu). The bug is at ~8s. Maybe coming from BeginComboPopup that doesn't seems to apply viewport restriction on the popup ?

Screenshots/Video

2023-02-28.12-01-40.mp4

Standalone, minimal, complete and verifiable example: (see #2261)

This was reproduced with the base code. No changes.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions