eric6/QScintilla/Editor.py

changeset 8485
bb395ec2a6af
parent 8470
7a2678e25528
child 8486
f511dfc8db96
--- a/eric6/QScintilla/Editor.py	Wed Jul 28 17:01:12 2021 +0200
+++ b/eric6/QScintilla/Editor.py	Wed Jul 28 17:02:19 2021 +0200
@@ -4743,8 +4743,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