Skip to content

Commit

Permalink
Better alignment of bottom buttons on Mono
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Feb 25, 2025
1 parent 0a1cd13 commit 70a4582
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions GUI/Controls/LeftRightRowPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class LeftRightRowPanel : TableLayoutPanel
/// Initialize the control.
/// </summary>
public LeftRightRowPanel()
: base()
{
LeftPanel = new FlowLayoutPanel()
{
Expand Down Expand Up @@ -53,8 +54,10 @@ public LeftRightRowPanel()
GrowStyle = TableLayoutPanelGrowStyle.FixedSize;

ColumnCount = 2;
ColumnStyles.Add(new ColumnStyle());
ColumnStyles.Add(new ColumnStyle());
ColumnStyles.Add(Platform.IsMono ? new ColumnStyle(SizeType.Percent, 50F)
: new ColumnStyle());
ColumnStyles.Add(Platform.IsMono ? new ColumnStyle(SizeType.Percent, 50F)
: new ColumnStyle());

RowCount = 1;
RowStyles.Add(new RowStyle());
Expand Down

0 comments on commit 70a4582

Please sign in to comment.