Skip to content

Commit

Permalink
Tab Bar: fix 0ea4408 (#3414)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Jan 20, 2021
1 parent 74b3b7c commit 6737037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui_widgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7253,7 +7253,7 @@ static void ImGui::TabBarLayout(ImGuiTabBar* tab_bar)
// Actual layout in host window (we don't do it in BeginTabBar() so as not to waste an extra frame)
ImGuiWindow* window = g.CurrentWindow;
window->DC.CursorPos = tab_bar->BarRect.Min;
ItemSize(tab_bar->BarRect.GetSize(), tab_bar->FramePadding.y);
ItemSize(ImVec2(tab_bar->WidthAllTabs, tab_bar->BarRect.GetHeight()), tab_bar->FramePadding.y);
window->DC.IdealMaxPos.x = ImMax(window->DC.IdealMaxPos.x, tab_bar->BarRect.Min.x + tab_bar->WidthAllTabsIdeal);
}

Expand Down

0 comments on commit 6737037

Please sign in to comment.