diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-01 13:50:55 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-01 13:50:55 +0200 |
| commit | db2c28d9ca9f69b4bf181d2360df139dcf617324 (patch) | |
| tree | 5548089533afa528f7a8f0d56c514dab3e981e50 /src/GraphicObjects/TextBox.cs | |
| parent | ab038cf43805cc3aa071ae2ecbf3fa011fd3a6ca (diff) | |
use RegisterForRedraw when applicable
Diffstat (limited to 'src/GraphicObjects/TextBox.cs')
| -rw-r--r-- | src/GraphicObjects/TextBox.cs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/GraphicObjects/TextBox.cs b/src/GraphicObjects/TextBox.cs index fc02f0d6..5c3772b7 100644 --- a/src/GraphicObjects/TextBox.cs +++ b/src/GraphicObjects/TextBox.cs @@ -49,7 +49,7 @@ namespace Crow set { base.HasFocus = value; - RegisterForGraphicUpdate(); + RegisterForRedraw(); } } @@ -210,10 +210,6 @@ namespace Crow default: break; } - if (Width < 0) - RegisterForLayouting (LayoutingType.Width); - if (Height < 0) - RegisterForLayouting (LayoutingType.Height); RegisterForGraphicUpdate(); } public override void onKeyPress (object sender, KeyPressEventArgs e) @@ -225,10 +221,6 @@ namespace Crow SelRelease = -1; SelBegin = new Point(CurrentColumn, SelBegin.Y); - if (Width < 0) - RegisterForLayouting (LayoutingType.Width); - if (Height < 0) - RegisterForLayouting (LayoutingType.Height); RegisterForGraphicUpdate(); } #endregion |