From 3af334a093f8812b11d95cb7301686abc06d7434 Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Sat, 30 Sep 2023 11:23:29 +0800 Subject: [PATCH] fix: suggestion list set a minimum height --- src/ui/translatebox.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/translatebox.cc b/src/ui/translatebox.cc index 843fc745..261d241e 100644 --- a/src/ui/translatebox.cc +++ b/src/ui/translatebox.cc @@ -49,6 +49,7 @@ TranslateBox::TranslateBox( QWidget * parent ): translate_line->setCompleter( completer ); completer->setCompletionMode( QCompleter::UnfilteredPopupCompletion ); completer->setMaxVisibleItems( 16 ); + completer->popup()->setMinimumHeight( 256 ); connect( translate_line, &QLineEdit::returnPressed, [ this ]() { emit returnPressed();