Merge pull request #542 from and3md/edit_size

Ability to change min size edit text.
This commit is contained in:
Vadim Lopatin 2018-01-29 08:10:26 +03:00 committed by GitHub
commit 0f0a72b692
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -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;