mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-16 00:54:19 +00:00
Autofit cancel out one worth of vertical spacing for correct symmetry (group and tooltip already do that)
This commit is contained in:
parent
0ca7926b94
commit
b1b23d6ca9
1 changed files with 1 additions and 0 deletions
|
|
@ -3239,6 +3239,7 @@ bool ImGui::Begin(const char* name, bool* p_opened, const ImVec2& size_on_first_
|
|||
size_auto_fit = ImClamp(window->SizeContents + style.AutoFitPadding, style.WindowMinSize, ImMax(style.WindowMinSize, g.IO.DisplaySize - style.AutoFitPadding));
|
||||
if (size_auto_fit.y < window->SizeContents.y + style.AutoFitPadding.y)
|
||||
size_auto_fit.x += style.ScrollbarWidth;
|
||||
size_auto_fit.y -= style.ItemSpacing.y;
|
||||
}
|
||||
|
||||
// Handle automatic resize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue