mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-17 21:56:36 +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));
|
||||
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…
Reference in New Issue
Block a user