|
@@ -410,7 +410,8 @@ bool ImGui::BeginTableEx(const char* name, ImGuiID id, int columns_count, ImG
|
|
|
|
|
|
// Reset scroll if we are reactivating it
|
|
|
if ((previous_flags & (ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY)) == 0)
|
|
|
- SetNextWindowScroll(ImVec2(0.0f, 0.0f));
|
|
|
+ if ((g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasScroll) == 0)
|
|
|
+ SetNextWindowScroll(ImVec2(0.0f, 0.0f));
|
|
|
|
|
|
// Create scrolling region (without border and zero window padding)
|
|
|
ImGuiWindowFlags child_window_flags = (flags & ImGuiTableFlags_ScrollX) ? ImGuiWindowFlags_HorizontalScrollbar : ImGuiWindowFlags_None;
|