ggerganov / imtui

ImTui: Immediate Mode Text-based User Interface C++ Library
https://imtui.ggerganov.com
MIT License
3.04k stars 127 forks source link

Horizontal scrolling for tables doesn't work. #47

Open CncGpp opened 1 year ago

CncGpp commented 1 year ago

Horizontal scrolling for tables doesn't work. It is rendered double-width, overlayed on the last line and is not clickable/scrollable with the mouse.

Senza titolo

Tested with the lasta ImTui commit both on Windows (MSVC vs2019) & Ubuntu WSL in the Windows Terminal.

boeken-mmi commented 1 year ago

I was able to fix this by adding

   ImGui::GetStyle().ScrollbarSize = 1;
   ImGui::GetStyle().GrabMinSize = 1.0f;

after the ImGui_ImplText_Init(); call. This added a Space right to the vertical scroll bar, but it fixed the content alignment and the dragging of the horizontal one.