#1547 Horizontal scrollbar moves on tab change

Bug
open-accepted
None
5
2013-12-27
2013-11-08
Sworddragon
No

From the other ticket:

This happens also on the horizontal scrollbar. In the attachments are 2 screenshots: In the first I have simply created a line with one million characters. The second shows what is happening if I'm open another file then.

Edit: Uploading attachments doesn't work very well. The order is not correct and it seems not to currently be possible to change this (the second image is the first and the first is the second).

1 Attachments

Discussion

  • Sworddragon

    Sworddragon - 2013-11-08

    The upload system is really annoying (at least it is already addressed on Allura).

     
  • Neil Hodgson

    Neil Hodgson - 2013-11-11

    What is the problem here?

     
    • Sworddragon

      Sworddragon - 2013-11-13

      Directly after opening the file (automount.py) the horizontal scrollbar has an offset of 2 characters.

       
  • Neil Hodgson

    Neil Hodgson - 2013-11-14

    Likely caret is after 2nd character so there is no need to scroll further to make it visible.

     
    • Sworddragon

      Sworddragon - 2013-11-15

      The caret is at line 1 at position 0 (as the file was directly opened before this is the only logical state).

       
      • Neil Hodgson

        Neil Hodgson - 2013-11-15

        Can't reproduce with release 3.3.6 or current code.

         
  • Neil Hodgson

    Neil Hodgson - 2013-11-14
     
  • Sworddragon

    Sworddragon - 2013-11-18

    I have figured out that this bug only happens because I have set "line.margin.width=1+" and that the character offset is always the number of digits of lines - 1. For example the file will need 10 lines for an offset of 1 character and 100 lines for an offset of 2 characters.

     
  • Neil Hodgson

    Neil Hodgson - 2013-11-20
    • status: open --> open-accepted
    • assigned_to: Neil Hodgson
     
  • Neil Hodgson

    Neil Hodgson - 2013-12-27

    I can't reproduce this.

    There is an issue when auto-scrolling to the left where the right side of the caret is made visible so the actual caret may not be visible. Tweaked the positioning with [581e51] which should fix that problem.

     

    Related

    Commit: [581e51]

    • Sworddragon

      Sworddragon - 2013-12-27

      I will test this if a new release is out as compiling fails on my system:

      sworddragon@ubuntu:~/data/scintilla/gtk$ make
      Package gtk+-2.0 was not found in the pkg-config search path.
      Perhaps you should add the directory containing `gtk+-2.0.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'gtk+-2.0' found
      g++ -DNDEBUG -Os -Wall -Wno-missing-braces -Wno-char-subscripts -pedantic -DGTK -DSCI_LEXER -I ../include -I ../src -c PlatGTK.cxx
      PlatGTK.cxx:11:18: fatal error: glib.h: No such file or directory
      #include <glib.h>
      ^
      compilation terminated.
      make: *** [PlatGTK.o] Error 1
      sworddragon@ubuntu:~/data/scintilla/gtk$ find / 2> /dev/null | grep '/glib.h$'
      /usr/include/glib-2.0/glib.h
      sworddragon@ubuntu:~/data/scintilla/gtk$ echo $PKG_CONFIG_PATH

      sworddragon@ubuntu:~/data/scintilla/gtk$ export PKG_CONFIG_PATH=/usr/include/glib-2.0
      sworddragon@ubuntu:~/data/scintilla/gtk$ make
      Package gtk+-2.0 was not found in the pkg-config search path.
      Perhaps you should add the directory containing `gtk+-2.0.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'gtk+-2.0' found
      g++ -DNDEBUG -Os -Wall -Wno-missing-braces -Wno-char-subscripts -pedantic -DGTK -DSCI_LEXER -I ../include -I ../src -c PlatGTK.cxx
      PlatGTK.cxx:11:18: fatal error: glib.h: No such file or directory
      #include <glib.h>
      ^
      compilation terminated.
      make: *** [PlatGTK.o] Error 1

       
      • Neil Hodgson

        Neil Hodgson - 2013-12-29

        Package gtk+-2.0 was not found in the pkg-config search path.

        Install the indicated package.

         
        Last edit: Neil Hodgson 2013-12-29
        • Sworddragon

          Sworddragon - 2015-08-03

          Is the commit in version 3.5.0? As I'm still able to reproduce this issue there.

           
          • Neil Hodgson

            Neil Hodgson - 2015-08-03

            Yes.

             

Log in to post a comment.