CTextBox: Fix unselectable textbox of one line
This commit is contained in:
@@ -9,7 +9,6 @@ namespace CsvView
|
||||
{
|
||||
public CTextBox()
|
||||
{
|
||||
Multiline = true;
|
||||
WordWrap = false;
|
||||
ScrollBars = ScrollBars.Horizontal;
|
||||
Font = new Font("Courier New", 9, FontStyle.Regular, GraphicsUnit.Point, 0);
|
||||
|
||||
@@ -185,6 +185,7 @@ namespace CsvView
|
||||
Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right),
|
||||
Width = pnlData.Width - Padding,
|
||||
Height = (valueLines.Length * LineHeight) + TexboxPadding,
|
||||
Multiline = (valueLines.Length > 1),
|
||||
Top = y,
|
||||
Left = 0,
|
||||
ReadOnly = true,
|
||||
|
||||
Reference in New Issue
Block a user