Open o-3-o opened 1 month ago
This is essentially a byproduct of #7887 #7888 : border size don't affect layout and so a thick border (as the child window resizing border is) would overlap content.
In addition to that, windowing decorations are rendered first.
(They are also displayed in parent window when possible to reduce amount of draw calls as the decoration needs same clipping rect as parent, but there is a mechanism to control that, we could set back render_decorations_in_parent=false
in Begin() when borders are hovered. But it won't solve the problem enough)
I acknowledge this is an issue but it seems very minor and due to the complexity of the changes required it's unlikely to be a priority and it's unlikely to be fixed soon.
ok, I haven't read the internal code in depth, so I think using the foreground draw list to draw the border should solve the problem, but I don't know if there will be any side effects?
But it's actually harmless, there are still many ways to solve this small problem at the user level.
ok, I haven't read the internal code in depth, so I think using the foreground draw list to draw the border should solve the problem, but I don't know if there will be any side effects?
Well that's pretty wrong, as it means e.g. hovering a border of a partially covered window would display the border over all other windows.
I suppose that drawing specific window decorations at the end of the frame would also fit #2856.
Version/Branch of Dear ImGui:
Version 1.91.2, Branch: docking
Back-ends:
imgui_impl_Win32.cpp + imgui_impl_DX11.cpp
Compiler, OS:
win11+vs2022
Full config/build information:
Details:
My Issue/Question:
BeginChild When ImGuiChildFlags_ResizeX is enabled, should the separator line be overlaid on the project element foreground?
Screenshots/Video:
Minimal, Complete and Verifiable Example code: