mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-14 19:04:44 +00:00
First separator not appearing in child region #860
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#860
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?
The first Separator after a BeginChild appears to be behaving incorrectly.
Here's the complete code sample without the separator call:
and the corresponding result, which appears correct:

Below I've enumerated the results of doing separator calls before and after the call to
ImGui::Columns(2);The separator does not appear at all, and there is a vertical gap that appears between the parent and child column dividers.
The separator does not appear at all, and the column headers are misaligned (but there is no vertical gap between parent and child column dividers).
This is the behavior I'm looking for, so for now this is my workaround. The first separator does not appear, but it does some magic to allow for the second separator to work correctly.
Thank you Geoffrey.
The bug was that Separator() was submitting a bounding box with zero-height. Right after entering a child window with zero-padding the cursor would sit exactly on the edge of the clipping rectangle so with a zero-height it would get clipped by
IsClippedEx()called fromItemAdd(). I made Separator() pass in the correct 1-pixel height and it doesn't get clipped anymore.Here's a simplified repro for reference:
I really feel for us with this usage of columns. They are very impractical at the moment. I hope to dedicate serious time to columns when I have it.