ImGuiTableFlags_ScrollY
cancels ImGuiChildFlags_NavFlattened
#8280
Labels
ImGuiTableFlags_ScrollY
cancels ImGuiChildFlags_NavFlattened
#8280
Version/Branch of Dear ImGui:
Version 1.95.5, Branch: XXX (master/docking/etc.); using CleverRaven/Cataclysm-DDA#78144
Back-ends:
n/a
Compiler, OS:
Windows 10 + MSVC 2019
Full config/build information:
Details:
I want a menu with:
TableSetupScrollFreeze( 0, /*rows*/1 )
and withImGuiTableFlags_ScrollY
I tried making the buttons unselectable. When opening the menu, the user still has to first select the table and only then use up/down arrows to select entries:
Then I tried to put the table inside of
BeginChild( "table", ImVec2( 0, 0 ), ImGuiChildFlags_NavFlattened );
to expose the entries allowing up/down arrows right away without the need to press enter to select the table first.I worked out that this solution worked only as long, as
BeginTable
didn't haveImGuiTableFlags_ScrollY
.I need
ImGuiTableFlags_ScrollY
in order to have the header frozen. When I don't use it, the header can hide as the child window scrolls:Important bits of my code I would expect to work (with
ImGuiTableFlags_ScrollY
), but it does not:Much more of my code
My question is: Why does
ImGuiTableFlags_ScrollY
cancel the effect ofImGuiChildFlags_NavFlattened
?Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
I made it a part of
imgui_demo.cpp
.ImGui::BeginTable( "PATH_MANAGER", 1, ImGuiTableFlags_ScrollY );
toImGui::BeginTable( "PATH_MANAGER", 1 );
The text was updated successfully, but these errors were encountered: