Skip to content

Commit

Permalink
Settings: Display label to the top to make UI more readable on multil…
Browse files Browse the repository at this point in the history
…ine controls
  • Loading branch information
pmiossec committed Aug 21, 2019
1 parent 6de714b commit eb91b7b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Drawing;
using System.Windows.Forms;
using GitExtUtils.GitUI;
using GitUIPluginInterfaces;

namespace GitUI.CommandsDialogs.SettingsDialog
Expand Down Expand Up @@ -126,7 +127,8 @@ public override void AddSettingControlImpl(ISettingControlBinding controlBinding
{
Text = controlBinding.Caption(),
AutoSize = true,
Anchor = AnchorStyles.Left
Anchor = AnchorStyles.Left | AnchorStyles.Top,
Margin = new Padding(0, DpiUtil.Scale(5), 0, 0)
};

tableLayout.Controls.Add(label, 0, _currentRow);
Expand Down

0 comments on commit eb91b7b

Please sign in to comment.