Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set BeginComboPreview height #5963

Closed
llxiaoyuan opened this issue Dec 7, 2022 · 1 comment
Closed

How to set BeginComboPreview height #5963

llxiaoyuan opened this issue Dec 7, 2022 · 1 comment
Labels

Comments

@llxiaoyuan
Copy link

        if (ImGui::BeginCombo("##combo_path", NULL, ImGuiComboFlags_CustomPreview))
        {

            ...

            ImGui::EndCombo();
        }

        if (ImGui::BeginComboPreview())
        {
            ImGui::Button("dwabudciawg", { 0,200 });
            ImGui::EndComboPreview();
        }

image

How to set BeginComboPreview height, show button fully

@ocornut
Copy link
Owner

ocornut commented Dec 7, 2022

Framed Item height are always == GetFrameHeight() == FontSize + style.FramePadding.y, you currently can't set that height otherwise than changing e.g. FramePadding.

Linking to #1658

@ocornut ocornut added the layout label Dec 7, 2022
@ocornut ocornut closed this as completed Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants