GUI: add ImGuiTableFlags_NoScrollWithMouse
This commit is contained in:
parent
2abe76d000
commit
cb825ca938
3 changed files with 5 additions and 1 deletions
3
extern/imgui_patched/imgui_tables.cpp
vendored
3
extern/imgui_patched/imgui_tables.cpp
vendored
|
|
@ -401,6 +401,9 @@ bool ImGui::BeginTableEx(const char* name, ImGuiID id, int columns_count, ImG
|
|||
|
||||
// Create scrolling region (without border and zero window padding)
|
||||
ImGuiWindowFlags child_flags = (flags & ImGuiTableFlags_ScrollX) ? ImGuiWindowFlags_HorizontalScrollbar : ImGuiWindowFlags_None;
|
||||
if (flags & ImGuiTableFlags_NoScrollWithMouse) {
|
||||
child_flags |= ImGuiWindowFlags_NoScrollWithMouse;
|
||||
}
|
||||
BeginChildEx(name, instance_id, outer_rect.GetSize(), false, child_flags);
|
||||
table->InnerWindow = g.CurrentWindow;
|
||||
table->WorkRect = table->InnerWindow->WorkRect;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue