Fix odd resizing of chat messages

When calling updateGeometry on the message labels the layout system
seems to resize the widgets in weird ways.  There may be a different way
to keep it from doing this.
This commit is contained in:
Ryan Huffman 2014-04-10 12:09:06 -07:00
parent ff3ebd1eda
commit 37f9f47488

View file

@ -251,7 +251,6 @@ void ChatWindow::messageReceived(const QXmppMessage& message) {
Application::processEvents();
QScrollBar* verticalScrollBar = ui->messagesScrollArea->verticalScrollBar();
verticalScrollBar->setSliderPosition(verticalScrollBar->maximum());
messageLabel->updateGeometry();
++numMessagesAfterLastTimeStamp;
if (message.stamp().isValid()) {