mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-10 19:03:30 +00:00
TabItem 'Unsaved document' bullet rendered too low #6862
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#6862
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.90 WIP (18992)
Branch: docking
Back-ends: (tested with) example_win32_directx11, custom backend
Operating System: Windows 10
Issue (regression):

TabBarItems with the ImGuiTabItemFlags_UnsavedDocument flag set has the dot/bullet rendered too low:
The reason seems to be a change in
TabItemLabelAndCloseButtonin imgui_widgets.cpp.(introduced into docking when merging from master in
676497fe, I did not investigate further where exactly in master).When calculating
button_posthe frame_padding.y gets added to the y value.The tab close button seems to have been adjusted by removing the surrounding Push/PopStyleVar(FramePadding).
However the unsaved document bullet still has a
+ g.Style.FramePadding * 2.0fadded to its bounds.This then affects bb.GetCenter().
This was indeed broken by
4a814244.I pushed the fix
e5ca535now.I confirmed this cherry-pick fine in docking until we merge it (usually once a week).
Thank you!