Scrolling happens only in the central section (leading/trailing sections are not scrolling)
| 7650 | |
| 7651 | // Scrolling happens only in the central section (leading/trailing sections are not scrolling) |
| 7652 | static float TabBarCalcScrollableWidth(ImGuiTabBar* tab_bar, ImGuiTabBarSection* sections) |
| 7653 | { |
| 7654 | return tab_bar->BarRect.GetWidth() - sections[0].Width - sections[2].Width - sections[1].Spacing; |
| 7655 | } |
| 7656 | |
| 7657 | // This is called only once a frame before by the first call to ItemTab() |
| 7658 | // The reason we're not calling it in BeginTabBar() is to leave a chance to the user to call the SetTabItemClosed() functions. |
no outgoing calls
no test coverage detected