Skip to content

Commit

Permalink
Settings: Display label to the top to make UI more readable on… (#7036)
Browse files Browse the repository at this point in the history
Settings: Display label to the top to make UI more readable on multiline controls
  • Loading branch information
RussKie committed Aug 22, 2019
2 parents 6de714b + 212aab0 commit 1ca04b5
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(2), 0, 0)
};

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

0 comments on commit 1ca04b5

Please sign in to comment.