Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings: Display label to the top to make UI more readable on multiline controls #7036

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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