Fix combos with irregular item spacing.

This commit is contained in:
Ottermandias 2023-07-31 18:18:13 +02:00
parent 45a8cbcf89
commit 8c427e49e3
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ public sealed class DesignCombo : FilterComboCache<Design>
CurrentSelectionIdx = (design?.Design?.Index ?? -1) + 1;
var name = design?.Name(incognito) ?? string.Empty;
if (Draw("##design", name, string.Empty, ImGui.GetContentRegionAvail().X,
ImGui.GetTextLineHeight())
ImGui.GetTextLineHeightWithSpacing())
&& CurrentSelection != null)
{
if (autoDesignIndex >= 0)

View file

@ -362,7 +362,7 @@ public class SetPanel
CurrentSelectionIdx = _jobs.JobGroups.Values.IndexOf(j => j.Id == design.Jobs.Id);
if (Draw("##JobGroups", design.Jobs.Name,
"Select for which job groups this design should be applied.\nControl + Right-Click to set to all classes.",
ImGui.GetContentRegionAvail().X, ImGui.GetTextLineHeight())
ImGui.GetContentRegionAvail().X, ImGui.GetTextLineHeightWithSpacing())
&& CurrentSelectionIdx >= 0)
_manager.ChangeJobCondition(set, autoDesignIndex, CurrentSelection);
else if (ImGui.GetIO().KeyCtrl && ImGui.IsItemClicked(ImGuiMouseButton.Right))