mirror of
https://github.com/ocornut/imgui.git
synced 2025-02-22 13:19:56 +01:00
Docking: Fixed node tab-bar not having a filled value for tab-bar which is required for claiming moue wheel ownership in (unenabled) ImGuiTabBarFlags_FittingPolicyScroll mode.
Amend 5f30191
This commit is contained in:
parent
afd0d3fca1
commit
ac3bc73c13
@ -16768,6 +16768,7 @@ static void ImGui::DockNodeUpdateTabBar(ImGuiDockNode* node, ImGuiWindow* host_w
|
|||||||
DockNodeAddTabBar(node);
|
DockNodeAddTabBar(node);
|
||||||
tab_bar = node->TabBar;
|
tab_bar = node->TabBar;
|
||||||
}
|
}
|
||||||
|
tab_bar->ID = GetID("#TabBar");
|
||||||
|
|
||||||
ImGuiID focus_tab_id = 0;
|
ImGuiID focus_tab_id = 0;
|
||||||
node->IsFocused = is_focused;
|
node->IsFocused = is_focused;
|
||||||
@ -16846,7 +16847,7 @@ static void ImGui::DockNodeUpdateTabBar(ImGuiDockNode* node, ImGuiWindow* host_w
|
|||||||
|
|
||||||
// Begin tab bar
|
// Begin tab bar
|
||||||
ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_Reorderable | ImGuiTabBarFlags_AutoSelectNewTabs; // | ImGuiTabBarFlags_NoTabListScrollingButtons);
|
ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_Reorderable | ImGuiTabBarFlags_AutoSelectNewTabs; // | ImGuiTabBarFlags_NoTabListScrollingButtons);
|
||||||
tab_bar_flags |= ImGuiTabBarFlags_SaveSettings | ImGuiTabBarFlags_DockNode;
|
tab_bar_flags |= ImGuiTabBarFlags_SaveSettings | ImGuiTabBarFlags_DockNode;// | ImGuiTabBarFlags_FittingPolicyScroll;
|
||||||
if (!host_window->Collapsed && is_focused)
|
if (!host_window->Collapsed && is_focused)
|
||||||
tab_bar_flags |= ImGuiTabBarFlags_IsFocused;
|
tab_bar_flags |= ImGuiTabBarFlags_IsFocused;
|
||||||
BeginTabBarEx(tab_bar, tab_bar_rect, tab_bar_flags, node);
|
BeginTabBarEx(tab_bar, tab_bar_rect, tab_bar_flags, node);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user