|
|
|
@ -5548,7 +5548,7 @@ bool ImGui::BeginMenu(const char* label, bool enabled)
|
|
|
|
|
// Menu inside an horizontal menu bar
|
|
|
|
|
// Selectable extend their highlight by half ItemSpacing in each direction.
|
|
|
|
|
// For ChildMenu, the popup position will be overwritten by the call to FindBestWindowPosForPopup() in Begin()
|
|
|
|
|
popup_pos = ImVec2(pos.x - window->WindowPadding.x, pos.y - style.FramePadding.y + window->MenuBarHeight());
|
|
|
|
|
popup_pos = ImVec2(pos.x - 1.0f - (float)(int)(style.ItemSpacing.x * 0.5f), pos.y - style.FramePadding.y + window->MenuBarHeight());
|
|
|
|
|
window->DC.CursorPos.x += (float)(int)(style.ItemSpacing.x * 0.5f);
|
|
|
|
|
PushStyleVar(ImGuiStyleVar_ItemSpacing, style.ItemSpacing * 2.0f);
|
|
|
|
|
float w = label_size.x;
|
|
|
|
|