mahilab / mahi-gui

Dirt Simple C++ GUI Toolkit using GLFW, ImGui, and NanoVG
MIT License
454 stars 70 forks source link

XBar plot disappears during mouse drag #18

Closed up-to-you closed 4 years ago

up-to-you commented 4 years ago

Ubuntu 19.10 4k display

Using imgui example_sdl_opengl3 with new mahi gui window : main

The blue bar is is displayed: main_1

Dragging mouse 1 mm higher cause the bar to disappear: main_2

The only thing i modified in mahi-gui sources is the line in: https://github.com/mahilab/mahi-gui/blob/master/src/Mahi/Gui/imgui_plot.cpp#L168

removed ternary operator for highlited field due to compilation error.

epezent commented 4 years ago

Hi, thanks for the notice. The bar plot was being culled incorrectly. I temporarily disabled this so that it should work. I also fixed the compilation error. Thank you!