Skip to content

Using ImGuiWindowFlags_UnsavedDocument on docking branch result in "..." window name display #5745

@ypujante

Description

@ypujante

I just switched to the Docking branch (last commit 69beaa1) and when I use ImGuiWindowFlags_UnsavedDocument as a flag to the window (to show that there are unsaved changes), then the name of the window gets truncated (although it is a small name re-edit and there are no other tabs) as seen in this screenshot. After saving changes, and removing the flag, it gets rendered properly.

It only happens if there is another window docked to that one (whether docking is on the side or a tab).

Prior to switching, I was using v1.88 (master not docking 9aae45e) and there was no problem.

Screen Shot 2022-10-02 at 10 52 35

Dear ImGui 1.89 WIP (18828)
--------------------------------
sizeof(size_t): 8, sizeof(ImDrawIdx): 2, sizeof(ImDrawVert): 20
define: __cplusplus=201703
define: __APPLE__
define: __GNUC__=4
define: __clang_version__=11.0.0 (clang-1100.0.33.17)
define: IMGUI_HAS_VIEWPORT
define: IMGUI_HAS_DOCK
--------------------------------
io.BackendPlatformName: imgui_impl_glfw
io.BackendRendererName: imgui_impl_metal
io.ConfigFlags: 0x00000040
 DockingEnable
io.ConfigViewportsNoDecoration
io.ConfigDockingWithShift
io.ConfigMacOSXBehaviors
io.ConfigInputTextCursorBlink
io.ConfigWindowsResizeFromEdges
io.ConfigWindowsMoveFromTitleBarOnly
io.ConfigMemoryCompactTimer = 60.0
io.BackendFlags: 0x0000140E
 HasMouseCursors
 HasSetMousePos
 PlatformHasViewports
 RendererHasVtxOffset
 RendererHasViewports
--------------------------------
io.Fonts: 1 fonts, Flags: 0x00000000, TexSize: 512,256
io.DisplaySize: 1280.00,720.00
io.DisplayFramebufferScale: 2.00,2.00
--------------------------------
style.WindowPadding: 8.00,8.00
style.WindowBorderSize: 1.00
style.FramePadding: 4.00,3.00
style.FrameRounding: 0.00
style.FrameBorderSize: 0.00
style.ItemSpacing: 8.00,4.00
style.ItemInnerSpacing: 4.00,4.00

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions