2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

crash fixed in InputField and InputArea

This commit is contained in:
John Preston
2015-10-14 23:47:23 +02:00
parent 6168f3334d
commit a94acdea53
3 changed files with 17 additions and 16 deletions

View File

@@ -1168,6 +1168,7 @@ _saveTitleRequestId(0), _saveDescriptionRequestId(0) {
_title.setMaxLength(MaxGroupChannelTitle);
_description.setMaxLength(MaxChannelDescription);
_description.resize(width() - st::boxPadding.left() - st::newGroupInfoPadding.left() - st::boxPadding.right(), _description.height());
myEnsureResized(&_description);
updateMaxHeight();
connect(&_description, SIGNAL(resized()), this, SLOT(onDescriptionResized()));