diff options
Diffstat (limited to 'mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs')
-rw-r--r-- | mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs index c6a9b6031aa..2ff57ed5aa0 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs @@ -152,9 +152,9 @@ namespace System.Windows.Forms format.FormatFlags = StringFormatFlags.NoWrap; if (owner != null) - column_rect.Height = owner.Font.Height + 5; + column_rect.Height = ThemeEngine.Current.ListViewGetHeaderHeight (owner, owner.Font); else - column_rect.Height = ThemeEngine.Current.DefaultFont.Height + 5; + column_rect.Height = ThemeEngine.Current.ListViewGetHeaderHeight (null, ThemeEngine.Current.DefaultFont); if (width >= 0) column_rect.Width = width; |