Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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.cs10
1 files changed, 7 insertions, 3 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 db6170ecc2f..cac8972e0b6 100644
--- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs
+++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnHeader.cs
@@ -322,9 +322,13 @@ namespace System.Windows.Forms
public int Width {
get { return width; }
set {
- width = value;
- if (owner != null)
- owner.Redraw (true);
+ if (width != value) {
+ width = value;
+ if (owner != null) {
+ owner.Redraw (true);
+ owner.RaiseColumnWidthChanged (this);
+ }
+ }
}
}
#endregion // Public Instance Properties