mirror of
https://github.com/ocornut/imgui.git
synced 2025-01-18 17:24:09 +01:00
Bullet() fixed inconsistent layout behaviour when clipped.
This commit is contained in:
parent
d88b73a8b7
commit
9eed672725
@ -5436,7 +5436,10 @@ void ImGui::Bullet()
|
|||||||
const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(line_height, line_height));
|
const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(line_height, line_height));
|
||||||
ItemSize(bb);
|
ItemSize(bb);
|
||||||
if (!ItemAdd(bb, NULL))
|
if (!ItemAdd(bb, NULL))
|
||||||
|
{
|
||||||
|
ImGui::SameLine(0, -1);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Render
|
// Render
|
||||||
const float bullet_size = line_height*0.15f;
|
const float bullet_size = line_height*0.15f;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user