CTextBox: Fix SetClientsideHeight when setting height two or more times.
This commit is contained in:
@@ -43,6 +43,10 @@ public class CTextBox : Control, INamingContainer, IValidableControl
|
|||||||
set => _txtContent.TextMode = value;
|
set => _txtContent.TextMode = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public TextBox TxtContent => _txtContent;
|
||||||
|
|
||||||
|
public HiddenField? HidSize => _hidSize;
|
||||||
|
|
||||||
#endregion Properties
|
#endregion Properties
|
||||||
|
|
||||||
#region Control life cycle
|
#region Control life cycle
|
||||||
@@ -147,7 +151,8 @@ public class CTextBox : Control, INamingContainer, IValidableControl
|
|||||||
JsonParser jsonParser = new JsonParser();
|
JsonParser jsonParser = new JsonParser();
|
||||||
sizeObj = jsonParser.Parse(_hidSize?.Value) as Dictionary<string, object?>;
|
sizeObj = jsonParser.Parse(_hidSize?.Value) as Dictionary<string, object?>;
|
||||||
}
|
}
|
||||||
sizeObj ??= new Dictionary<string, object?> { { "height", height }, { "width", null }, { "scrollTop", null }, };
|
sizeObj ??= new Dictionary<string, object?> { { "height", null }, { "width", null }, { "scrollTop", null }, };
|
||||||
|
sizeObj["height"] = height;
|
||||||
|
|
||||||
if (_hidSize != null)
|
if (_hidSize != null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user