diff --git a/Source/Core/Controls/FieldsEditorControl.cs b/Source/Core/Controls/FieldsEditorControl.cs index 458192db..74aff712 100755 --- a/Source/Core/Controls/FieldsEditorControl.cs +++ b/Source/Core/Controls/FieldsEditorControl.cs @@ -83,6 +83,7 @@ namespace CodeImp.DoomBuilder.Controls public FieldsEditorControl() { InitializeComponent(); + CodeImp.DoomBuilder.General.ApplyDataGridViewFix(fieldslist); autoinsertuserprefix = true; enumscombo.Location = new Point(-1000, 1); } diff --git a/Source/Core/General/General.cs b/Source/Core/General/General.cs index df512620..018ebee3 100755 --- a/Source/Core/General/General.cs +++ b/Source/Core/General/General.cs @@ -57,8 +57,17 @@ namespace CodeImp.DoomBuilder listview.View = System.Windows.Forms.View.SmallIcon; } } + + public static void ApplyDataGridViewFix(System.Windows.Forms.DataGridView gridview) + { + if (gridview.RowsDefaultCellStyle != null && gridview.RowsDefaultCellStyle.Padding != new System.Windows.Forms.Padding(0,0,0,0)) + { + gridview.RowsDefaultCellStyle.Padding = new System.Windows.Forms.Padding(0,0,0,0); + } + } #else public static void ApplyMonoListViewFix(System.Windows.Forms.ListView listview) {} + public static void ApplyDataGridViewFix(System.Windows.Form.DataGridView gridview) {} #endif #if NO_WIN32 diff --git a/Source/Core/Windows/ErrorsForm.cs b/Source/Core/Windows/ErrorsForm.cs index dd623ae0..a25cd825 100755 --- a/Source/Core/Windows/ErrorsForm.cs +++ b/Source/Core/Windows/ErrorsForm.cs @@ -39,6 +39,7 @@ namespace CodeImp.DoomBuilder.Windows public ErrorsForm() { InitializeComponent(); + CodeImp.DoomBuilder.General.ApplyDataGridViewFix(grid); FillList(); checkerrors.Start(); diff --git a/Source/Core/Windows/TagStatisticsForm.cs b/Source/Core/Windows/TagStatisticsForm.cs index 92b709fd..c4d54e4d 100755 --- a/Source/Core/Windows/TagStatisticsForm.cs +++ b/Source/Core/Windows/TagStatisticsForm.cs @@ -23,6 +23,7 @@ namespace CodeImp.DoomBuilder.Windows public TagStatisticsForm() { InitializeComponent(); + CodeImp.DoomBuilder.General.ApplyDataGridViewFix(dataGridView); //apply window size and location if(!size.IsEmpty && !location.IsEmpty) diff --git a/Source/Core/Windows/ThingStatisticsForm.cs b/Source/Core/Windows/ThingStatisticsForm.cs index 469ea837..d820d076 100755 --- a/Source/Core/Windows/ThingStatisticsForm.cs +++ b/Source/Core/Windows/ThingStatisticsForm.cs @@ -18,6 +18,7 @@ namespace CodeImp.DoomBuilder.Windows public ThingStatisticsForm() { InitializeComponent(); + CodeImp.DoomBuilder.General.ApplyDataGridViewFix(dataGridView); //apply window size and location if(!size.IsEmpty && !location.IsEmpty) diff --git a/Source/Plugins/BuilderModes/Interface/FilterSelectedThingsForm.cs b/Source/Plugins/BuilderModes/Interface/FilterSelectedThingsForm.cs index 83899b59..7e5673ed 100755 --- a/Source/Plugins/BuilderModes/Interface/FilterSelectedThingsForm.cs +++ b/Source/Plugins/BuilderModes/Interface/FilterSelectedThingsForm.cs @@ -19,6 +19,7 @@ namespace CodeImp.DoomBuilder.BuilderModes public FilterSelectedThingsForm(ICollection selection, ThingsMode mode) { InitializeComponent(); + CodeImp.DoomBuilder.General.ApplyDataGridViewFix(dataGridView); this.mode = mode; //apply window size and location diff --git a/Source/Plugins/CommentsPanel/CommentsDocker.cs b/Source/Plugins/CommentsPanel/CommentsDocker.cs index 0162caae..a9d4de13 100755 --- a/Source/Plugins/CommentsPanel/CommentsDocker.cs +++ b/Source/Plugins/CommentsPanel/CommentsDocker.cs @@ -47,6 +47,7 @@ namespace CodeImp.DoomBuilder.CommentsPanel public CommentsDocker() { InitializeComponent(); + CodeImp.DoomBuilder.General.ApplyDataGridViewFix(grid); filtermode.Checked = General.Settings.ReadPluginSetting("filtermode", false); clickselects.Checked = General.Settings.ReadPluginSetting("clickselects", false);