diff --git a/src/dlangui/widgets/editors.d b/src/dlangui/widgets/editors.d index 5236eaf4..e4550fbc 100644 --- a/src/dlangui/widgets/editors.d +++ b/src/dlangui/widgets/editors.d @@ -2314,6 +2314,16 @@ class EditLine : EditWidgetBase { protected Point _measuredTextToSetWidgetSize; protected dstring _textToSetWidgetSize = "aaaaa"d; + + @property void textToSetWidgetSize(dstring newText) { + _textToSetWidgetSize = newText; + requestLayout(); + } + + @property dstring textToSetWidgetSize() { + return _textToSetWidgetSize; + } + protected int[] _measuredTextToSetWidgetSizeWidths; protected dchar _passwordChar = 0;