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

Unable to add left edge toolbar #107

Closed
gou177 opened this issue May 5, 2024 · 0 comments · Fixed by #108
Closed

Unable to add left edge toolbar #107

gou177 opened this issue May 5, 2024 · 0 comments · Fixed by #108

Comments

@gou177
Copy link
Contributor

gou177 commented May 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant