mirror of
https://github.com/Drezil/imgui.git
synced 2025-04-21 02:24:02 +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
@ -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));
|
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)
|
if (size_auto_fit.y < window->SizeContents.y + style.AutoFitPadding.y)
|
||||||
size_auto_fit.x += style.ScrollbarWidth;
|
size_auto_fit.x += style.ScrollbarWidth;
|
||||||
|
size_auto_fit.y -= style.ItemSpacing.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle automatic resize
|
// Handle automatic resize
|
||||||
|
Loading…
x
Reference in New Issue
Block a user