mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-13 00:24:20 +00:00
WIP Menus: Fixed estimation of scrollbar width (broke in 292f08b11e) (#126)
This commit is contained in:
parent
8c1d7daef8
commit
63aa035f59
1 changed files with 1 additions and 1 deletions
|
|
@ -3497,7 +3497,7 @@ bool ImGui::Begin(const char* name, bool* p_opened, const ImVec2& size_on_first_
|
|||
else
|
||||
{
|
||||
size_auto_fit = ImClamp(window->SizeContents + window_padding, style.WindowMinSize, ImMax(style.WindowMinSize, g.IO.DisplaySize - window_padding));
|
||||
if (size_auto_fit.y + style.ItemSpacing.y < window->SizeContents.y && !(flags & ImGuiWindowFlags_NoScrollbar))
|
||||
if (size_auto_fit.y < window->SizeContents.y && !(flags & ImGuiWindowFlags_NoScrollbar))
|
||||
size_auto_fit.x += style.ScrollbarWidth;
|
||||
size_auto_fit.y = ImMax(size_auto_fit.y - style.ItemSpacing.y, 0.0f);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue