From a3f4d4b06d92da2016cee584a93b8bcfef3db2c2 Mon Sep 17 00:00:00 2001 From: Alexander Date: Fri, 23 Aug 2019 23:46:11 +0300 Subject: [PATCH] Fixed glitch with "line numbers" panel --- Crypto Notepad/MainForm.Designer.cs | 2 +- Crypto Notepad/MainForm.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Crypto Notepad/MainForm.Designer.cs b/Crypto Notepad/MainForm.Designer.cs index 483ed95..6dfc3e2 100644 --- a/Crypto Notepad/MainForm.Designer.cs +++ b/Crypto Notepad/MainForm.Designer.cs @@ -919,8 +919,8 @@ public void InitializeComponent() this.ClientSize = new System.Drawing.Size(513, 318); this.Controls.Add(this.RichTextBox); this.Controls.Add(this.LineNumbers_For_RichTextBox); - this.Controls.Add(this.SearchPanel); this.Controls.Add(this.ToolbarPanel); + this.Controls.Add(this.SearchPanel); this.Controls.Add(this.MainMenu); this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); diff --git a/Crypto Notepad/MainForm.cs b/Crypto Notepad/MainForm.cs index 08db53d..34cb00e 100644 --- a/Crypto Notepad/MainForm.cs +++ b/Crypto Notepad/MainForm.cs @@ -629,6 +629,7 @@ private void MainWindow_Activated(object sender, EventArgs e) if (ps.ShowToolbar && !ToolbarPanel.Visible) { ToolbarPanel.Visible = true; + LineNumbers_For_RichTextBox.Height = 1; } MenuIcons();