spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.33k stars 1.61k forks source link

Vertical Ruler in wrong place when double panel editor #13853

Open jmoraispk opened 4 years ago

jmoraispk commented 4 years ago

Description

What steps will reproduce the problem?

1- Go to the Editor panel - notice the distance of the ruler relative to beginning of line; 2- Zoom in - notice the ruler gets further to the right, as it should, since characteres are bigger now; 3- Split Horizontally; 4- Notice the new panel has the ruler in position of step 1 (before the zoom), even though the characters have been scaled. 5- Notice also that after zooming the second panel, the ruler goes to the correct place.

ruler = vertical separator that usually is 79 or 80 characters from the beginning of the line.

Versions

Dependencies


# Mandatory:
atomicwrites >=1.2.0           :  1.4.0 (OK)
chardet >=2.0.0                :  3.0.4 (OK)
cloudpickle >=0.5.0            :  1.6.0 (OK)
diff_match_patch >=20181111    :  20200713 (OK)
intervaltree                   :  None (OK)
IPython >=4.0                  :  7.18.1 (OK)
jedi =0.17.1                   :  0.17.1 (OK)
nbconvert >=4.0                :  5.6.1 (OK)
numpydoc >=0.6.0               :  1.1.0 (OK)
paramiko >=2.4.0               :  2.7.2 (OK)
parso =0.7.0                   :  0.7.0 (OK)
pexpect >=4.4.0                :  4.8.0 (OK)
pickleshare >=0.4              :  0.7.5 (OK)
psutil >=5.3                   :  5.7.2 (OK)
pygments >=2.0                 :  2.6.1 (OK)
pylint >=1.0                   :  2.6.0 (OK)
pyls >=0.34.0;<1.0.0           :  0.34.1 (OK)
qdarkstyle >=2.8               :  2.8.1 (OK)
qtawesome >=0.5.7              :  0.7.2 (OK)
qtconsole >=4.6.0              :  4.7.6 (OK)
qtpy >=1.5.0                   :  1.9.0 (OK)
rtree >=0.8.3                  :  0.9.4 (OK)
sphinx >=0.6.6                 :  3.2.1 (OK)
spyder_kernels >=1.9.4;<1.10.0 :  1.9.4 (OK)
watchdog                       :  None (OK)
zmq >=17                       :  19.0.1 (OK)

# Optional:
cython >=0.21                  :  0.29.21 (OK)
matplotlib >=2.0.0             :  3.3.1 (OK)
numpy >=1.7                    :  1.19.1 (OK)
pandas >=0.13.1                :  1.1.1 (OK)
scipy >=0.17.0                 :  1.5.0 (OK)
sympy >=0.7.3                  :  1.6.2 (OK)
steff456 commented 4 years ago

Hi @jmoraispk,

I'm able to reproduce this issue, and in fact there's another issue with this horizontal split. So there's an error with the position of the vertical line and with the scale of the line numbers.

Captura de Pantalla 2020-09-24 a la(s) 2 26 23 p  m

We will work in this issue for our next release, thanks for reporting!