Menu

#1226 Horizontal scroll bar doesn't shrink

Bug
open-wont-fix
SciTE (663)
3
2020-04-03
2011-10-07
quilan
No

When a line overflows off screen the horizontal scroll bar resizes but fails
to adjust back according to file content (longest line).

Discussion

  • Neil Hodgson

    Neil Hodgson - 2011-10-07
    • assigned_to: nobody --> nyamatongwe
    • priority: 5 --> 3
    • status: open --> open-wont-fix
     
  • Neil Hodgson

    Neil Hodgson - 2011-10-07

    Determining the maximum line width and thus the scroll bar size may be a very slow operation. To avoid slowness, the scroll bar is not automatically shrunk to fit.

     
  • Michel Le Bihan

    Michel Le Bihan - 2020-04-03

    I think that Scintilla could attempt to do that. It could check the file size and only adjust the scroll bar when the file isn't very big. It could also stop after x lines or the operation could timeout.

    Most files aren't very big, so computing this shouldn't impact performance much.

     
  • Neil Hodgson

    Neil Hodgson - 2020-04-03

    An additional choice could be added to SetScrollWidthTracking if a viable implementation were contributed.

    The first step would be designing how this would work such as whether every document change requires a full restyle and measure. What priority does the measurement have over other background tasks? If there is a timeout then what happens when the operation times out?

     

Log in to post a comment.

MongoDB Logo MongoDB