From db2c28d9ca9f69b4bf181d2360df139dcf617324 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Mon, 1 Aug 2016 13:50:55 +0200 Subject: use RegisterForRedraw when applicable --- src/GraphicObjects/TextBox.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/GraphicObjects/TextBox.cs') 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 -- cgit v1.3.1-4-g156e