Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-33319

cannot scroll "small" file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • Qt Creator 18.0.0
    • Qt Creator 18.0.0
    • Editors
    • None
    • macOS
    • 9ea8f5c95 (master)

      There is a small glitch when opening a "small" file (i.e number of lines is smaller than space available).

      When opening a file, the text cursor is set to the position where the file has last been open. this line well be centered vertically on the screen. this means that the topmost line shown, is not the first line. however in this case, scrolling seems to be disabled: there's neither a scroll bar nor does the mouse wheel allow me to scroll to the first line. i can only scroll to the first line by navigating the text cursor to the top.

      steps to reproduce:

      • open a small file with e.g. 50ish lines
      • move text cursor to bottom
      • close file
      • re-open file

      current behaviour:

      • no scrollbar, no mouse wheel scrolling
      • only navigating text cursor works

      expected behaviour:

      • scrollbar when top-most line is not the first line
      • one could argue that one should not center the text cursor vertically, if the text cursor is in the bottom lines (lots of empty space in the bottom half of the screen)

        For Gerrit Dashboard: QTCREATORBUG-33319
        # Subject Branch Project Status CR V

            davschul David Schulz
            timblechmann tim blechmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes