mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-01 05:10:41 +00:00
Selectable highlight overlaps Table border when ImGuiSelectableFlags_SpanAllColumns set #4678
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#4678
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.86 WIP
Branch: docking - commit
bac748fa95Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_directx12.cpp + imgui_impl_win32.cpp
Compiler: Visual Studio 2019 16.11.5
Operating System: Windows
My Issue/Question:
When
ImGui::Selectable()is used inside a table with theImGuiSelectableFlags_SpanAllColumnsflag set, the selectable highlight is incorrectly drawn overlapping the table border pixel.If
ImGuiSelectableFlags_SpanAllColumnsis not used, then the border is not overdrawn, however the highlight no longer spans all columns.Note: the
ImGuiSelectableFlags_SpanAllColumnshighlight also overlaps the right-hand table border pixel too if the scrollbar is not present (confirmed after the screenshots below were captured).Is it possible to fix this so
ImGuiSelectableFlags_SpanAllColumnscan be used without overlapping the table border?Thanks
Screenshots/Video
Standalone, minimal, complete and verifiable example:
Overlapping the border in that instance is generally desirable at the border color may use e.g. a small alpha value.
Likewise, when two cells are meant to be contiguously selected a hole between two cells wouldn't be desirable.
What exactly is your issue in your context? How/why have you noticed that? What colors and style are you using?
@ocornut Overlapping the outer boarder really disrupts the visual continuity of the GUI. I agree that the highlight should overlap the border between columns, but I don't think it should overlap the external table border.
Here is a screenshot from the actual application:
You can see how the highlight breaks the frame around the table.
I'm not sure the best way to fix this? Is it possible to shrink the SpanAllColumns highlight horizontally by 1 pixel for the first and last columns?