mirror of
https://github.com/ocornut/imgui.git
synced 2026-10-29 07:54:40 +00:00
Docking - Gap between windows & difference between 1.89.7 and 1.92.9 #9563
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#9563
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Version/Branch of Dear ImGui:
Version 1.92.9b, Branch: docking (master/docking/etc.)
Back-ends:
imgui_impl_glfw.cpp + imgui_impl_opengl2.cpp AND example_apple_metal4
Compiler, OS:
Apple clang version 21.0.0 / Target: arm64-apple-darwin27.0.0 (macOS 27)
Full config/build information:
// I have tried with 2 different backends so I copy/pasted the from example_apple_metal4
Details:
Hi Omar
I just updated my project from 1.89.7 to the latest version 1.92.9b. I am using the Docking branch.
I am seeing a very different behavior between the 2 versions. I have read all the release notes between these 2 versions (yes I did not ask AI to do it for me... I read all of them). I did not see (or maybe I miss) something that would explain the radically different behavior.
In 1.89.7, if I dock the window to the bottom anchor, you can see it takes the whole space available, then I drag the other window to the top anchor and it gets split between the 2 and I can drag the line between the 2 to adjust both of them at the same time.
In 1.92.9b, if I dock the window to the bottom anchor, it no longer takes the whole space available but some portions at the bottom. If I drag the other window to the top anchor, then it takes some portion available at the top. And there is a gap between the 2 windows that is there permanently and cannot be shrunk. They no longer are "connected".
Am I not understanding how docking is supposed to work? Is this a bug?
Also loading the same window with a ".ini" file saved with 1.89.7 and opening it with 1.92.9b result in the individual windows not being docked anymore, but just free floating (they have a triangle at the bottom right corner to resize them in 1.92.9b). I saw in one of the release notes that the
IMGUI_USE_LEGACY_CRC32_ADLERflag could have an impact but uncommenting it did not change anything.Screenshots/Video:
ImGui 1.89.7:
https://github.com/user-attachments/assets/fddfc379-315b-47c5-8495-358ecda30678
ImGui 1.92.9b
https://github.com/user-attachments/assets/850c42f9-207b-4d6b-86d0-57841e1ff0b6
Minimal, Complete and Verifiable Example code:
I reproduced the same behavior by using example_apple_metal4 (to not have to depend on any other libraries like glfw) by simply adding the falt to enable docking and calling
ImGui::DockSpaceOverViewporton every frame, like this: