1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

LocationCompleterView: Fix incorrect resize in some cases

This commit is contained in:
David Rosca 2018-01-26 12:46:57 +01:00
parent 5ee0623d32
commit 8d06eee009
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -137,11 +137,12 @@ void LocationCompleterView::adjustSize()
}
if (!m_forceResize) {
if (newHeight == m_view->height() || newHeight == m_resizeHeight) {
if (newHeight == m_resizeHeight) {
return;
}
if (newHeight < m_view->height()) {
} else if (newHeight == m_view->height()) {
m_resizeHeight = -1;
return;
} else if (newHeight < m_view->height()) {
m_resizeHeight = newHeight;
m_resizeTimer->start();
return;