omar

Results 2356 comments of omar

If you modify the code in `DockNodeUpdateTabBar()` to add the `ImGuiTabBarFlags_FittingPolicyScroll` scroll to the tab bar: ``` ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_Reorderable | ImGuiTabBarFlags_AutoSelectNewTabs; tab_bar_flags |= ImGuiTabBarFlags_SaveSettings | ImGuiTabBarFlags_DockNode; tab_bar_flags |=...

> Generally we probably only want scrolling if the tabs take up more room than we have to display... This is already the case, but I don't think that's sufficient....

It's going to be too difficult with current logic to have a multi-line tab bar, but I reckon we should work toward the option to have mixed scroll/shrink, or consider...

Pushed a few commits now. This does not precisely answer the exact question "how can I change default tab-bar flags" instead this fixes IMHO the underlying issue making it not...

Thank you for the repro. I confirm this is an issue and the logic in `CalcWordWrapPositionA()` is behaving incorrectly here. Slightly tweaked repro: ```cpp if (ImGui::Begin("Issue #8139", NULL, ImGuiWindowFlags_NoSavedSettings)) {...

I had a quick look and it didn't seem like a trivial fix. The logic in `CalcWordWrapPositionA()` is a little bit weird and may need to be redesigned. Awkwardly we...

Thanks for your report. Simplified repro: ```cpp if (ImGui::Begin("ButtonTest #8732")) { for (int i = 0; i < 3; i++) { ImGui::PushID(i); ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, { 0, 30.f * (i % 2)...

For reference this is caused by ec0e953c for #2833, but the correct change is not yet obvious to me. Setting `offset_to_match_baseline_y = 0.0f` fixes the case here but break e.g....

I pretty much have the fix for this but I don't have a good path for integrating it short-term. (1) The simple path would involve making `ItemSize(ImRect& r)` the primary...