Unable to add left edge toolbar
gou177 opened this issue · comments
gou177 commented
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