Skip to content

Commit

Permalink
Fix button alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
behindcurtain3 committed Jul 7, 2024
1 parent 526124f commit 2bb91aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Pulsar4X/Pulsar4X.Client/EmpireManagement/FleetWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ private void DisplayShips()
ImGui.EndChild();
}

ImGui.SetCursorPosY(ImGui.GetCursorPosY());
ImGui.SetCursorPosY(ImGui.GetCursorPosY() - Styles.ButtonVerticalOffset);
ImGui.SetCursorPosX(xPosition);
if(ImGui.Button("Select All/None", new Vector2(Styles.LeftColumnWidthLg, 0f)))
{
Expand Down
2 changes: 2 additions & 0 deletions Pulsar4X/Pulsar4X.Client/Styles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,7 @@ public static class Styles

public static string IntFormat = "###,###,###,##0";
public static string DecimalFormat = "###,###,##0.##";

public static float ButtonVerticalOffset = 23f;
}
}

0 comments on commit 2bb91aa

Please sign in to comment.