On 27/11/2022 21:48, Matic Kukovec wrote:
Hi,
My Specs: Python 3.10.4 x64, PyQt 6.4.0, QScintilla 2.13.3
When having at least one margin and setting
'QsciScintilla.setEolVisibility(True)',
this is what happens to the margin when scrolling horizontally:
[cid:0703ea12-9f1d-4fdc-834f-5032ae002ed2]
Is this a bug in QScintilla or in the underlying Qt Scintilla widget?
Here is the code to reproduce it:
import PyQt6.QtGui
import PyQt6.Qsci
import sys
application = PyQt6.QtWidgets.QApplication(sys.argv)
editor = PyQt6.Qsci.QsciScintilla()
editor.setMarginType(0,
PyQt6.Qsci.QsciScintilla.MarginType.NumberMargin)
editor.setMarginWidth(0, "000000")
for i in range(100):
editor.append("Hello World | " * 50 + "\n")
editor.setEolVisibility(True)
editor.show()
application.exec()
The same code with 'setEolVisibility(False)' does not have this
problem.
Regards,
Matic
Fixed in the next snapshot.
Thanks,
Phil