pthom / hello_imgui

Hello, Dear ImGui: unleash your creativity in app development and prototyping

Home Page:https://pthom.github.io/hello_imgui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to add left edge toolbar

gou177 opened this issue · comments

To reproduce add here:

runnerParams.callbacks.AddEdgeToolbar(HelloImGui::EdgeToolbarType::Left, []() {});

I get std::out_of_range error
Found typo in source code:

if ( edgeToolbarType == EdgeToolbarType::Left)
{
    auto width = HelloImGui::EmSize(
        runnerParams.callbacks.edgesToolbars.at(EdgeToolbarType::Right).options.sizeEm);
    fullScreenSize.x = width;
}

if i replace EdgeToolbarType::Right to EdgeToolbarType::Left everything works as expected