From 03b1e643b48768db7c47b8b52553738c69361beb Mon Sep 17 00:00:00 2001 From: ocornut Date: Thu, 8 Oct 2020 10:47:10 +0200 Subject: [PATCH] Docs: Funding link, Tweaks, Gallery links. --- .github/FUNDING.yml | 1 + imgui_widgets.cpp | 1 + 2 files changed, 2 insertions(+) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 00000000..2aa08b44 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +custom: ['https://github.com/ocornut/imgui/wiki/Sponsors'] diff --git a/imgui_widgets.cpp b/imgui_widgets.cpp index 1214523a..d0cc5b2f 100644 --- a/imgui_widgets.cpp +++ b/imgui_widgets.cpp @@ -7841,6 +7841,7 @@ bool ImGui::TabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect& bb, text_pixel_clip_bb.Max.x -= close_button_sz; } + // FIXME: if FramePadding is noticeably large, ellipsis_max_x will be wrong here (e.g. #3497), maybe for consistency that parameter of RenderTextEllipsis() shouldn't exist.. float ellipsis_max_x = close_button_visible ? text_pixel_clip_bb.Max.x : bb.Max.x - 1.0f; RenderTextEllipsis(draw_list, text_ellipsis_clip_bb.Min, text_ellipsis_clip_bb.Max, text_pixel_clip_bb.Max.x, ellipsis_max_x, label, NULL, &label_size);