From 8d06eee0097467a578d978378e466dbb10f582b9 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Fri, 26 Jan 2018 12:46:57 +0100 Subject: [PATCH] LocationCompleterView: Fix incorrect resize in some cases --- src/lib/navigation/completer/locationcompleterview.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lib/navigation/completer/locationcompleterview.cpp b/src/lib/navigation/completer/locationcompleterview.cpp index e06014de6..d884aa633 100644 --- a/src/lib/navigation/completer/locationcompleterview.cpp +++ b/src/lib/navigation/completer/locationcompleterview.cpp @@ -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;