Skip to content
Snippets Groups Projects
Commit c719e01f authored by Vladyslav tronko's avatar Vladyslav tronko Committed by Vladyslav Tronko
Browse files

Don't let multiline text background overlap top border of text widget

parent 0c53a874
No related branches found
No related tags found
No related merge requests found
......@@ -456,7 +456,7 @@ TextInputWidget::TextInputWidget(QWidget *parent)
topLayout_ = new QHBoxLayout();
topLayout_->setSpacing(0);
topLayout_->setContentsMargins(13, 0, 13, 0);
topLayout_->setContentsMargins(13, 1, 13, 0);
QIcon send_file_icon;
send_file_icon.addFile(":/icons/icons/ui/paper-clip-outline.png");
......@@ -481,10 +481,10 @@ TextInputWidget::TextInputWidget(QWidget *parent)
&FilteredTextEdit::heightChanged,
this,
[this, InputHeight, contentHeight](int height) {
int textInputHeight =
std::min(MAX_TEXTINPUT_HEIGHT, std::max(height, InputHeight));
int widgetHeight =
std::min(MAX_TEXTINPUT_HEIGHT, std::max(height, contentHeight));
int textInputHeight =
std::min(widgetHeight - 1, std::max(height, InputHeight));
setFixedHeight(widgetHeight);
input_->setFixedHeight(textInputHeight);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment