Scrolling happens only in the central section (leading/trailing sections are not scrolling)
| 7932 | |
| 7933 | // Scrolling happens only in the central section (leading/trailing sections are not scrolling) |
| 7934 | static float TabBarCalcScrollableWidth(ImGuiTabBar* tab_bar, ImGuiTabBarSection* sections) |
| 7935 | { |
| 7936 | return tab_bar->BarRect.GetWidth() - sections[0].Width - sections[2].Width - sections[1].Spacing; |
| 7937 | } |
| 7938 | |
| 7939 | // This is called only once a frame before by the first call to ItemTab() |
| 7940 | // 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