eric7/QScintilla/Editor.py

branch
eric7
changeset 8481
02865597d820
parent 8471
e1f001ffdce4
child 8487
153b7c3da034
--- a/eric7/QScintilla/Editor.py	Wed Jul 28 17:01:12 2021 +0200
+++ b/eric7/QScintilla/Editor.py	Wed Jul 28 17:02:19 2021 +0200
@@ -4730,8 +4730,10 @@
             self.setAutoCompletionSource(
                 QsciScintilla.AutoCompletionSource.AcsAll)
         
-        self.maxLines = Preferences.getEditor("AutoCompletionMaxLines")
-        self.maxChars = Preferences.getEditor("AutoCompletionMaxChars")
+        self.setAutoCompletionWidgetSize(
+            Preferences.getEditor("AutoCompletionMaxChars"),
+            Preferences.getEditor("AutoCompletionMaxLines")
+        )
         
     def __setCallTips(self):
         """

eric ide

mercurial