/[RomCheater]/trunk/Win32/libWin32/Win32/UI/NumericBoxBase.cs
ViewVC logotype

Diff of /trunk/Win32/libWin32/Win32/UI/NumericBoxBase.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/Win32/libWin32/Win32/UI/NumericBoxBase.cs	2014/09/17 06:43:30	902
+++ trunk/Win32/libWin32/Win32/UI/NumericBoxBase.cs	2014/09/17 12:44:22	903
@@ -22,7 +22,13 @@
         [Browsable(true)]
         [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
         [EditorBrowsable(EditorBrowsableState.Always)]
-        public override bool AutoSize { get { return layout_panel.AutoSize; } set { layout_panel.AutoSize = value; } }
+        public override bool AutoSize { get { return base.AutoSize; } set { if (base.AutoSize != value) { base.AutoSize = value; OnAutoSizeChanged(new EventArgs()); } } }
+
+        protected override void OnAutoSizeChanged(EventArgs e)
+        {
+            base.OnAutoSizeChanged(e);
+            layout_panel.AutoSize = base.AutoSize;
+        }
 
         new public Font Font
         {

 

  ViewVC Help
Powered by ViewVC 1.1.22