#379 Adjust view area width according to longest line

Completed
closed
Scintilla (358)
2
2009-04-28
2006-10-21
No

I would like the Scintilla to automatically adjust the
width of the view area to match the width of the
longest line in the editor.

Currently the end of the long line is not visible if
you try to view it by using the scrollbar, but if you
set caret to that line and press "end" to get end of
the line, the width of the view area is fixed and the
line can be viewed via scrollbars also. The whole line
should be inside the view area by default.

Scintilla could perhaps hold the length of the longest
line in an internal variable and update that value when
text changes and use this value to calculate the width
for the view area and update it when necessary. This
should at least work for fonts where all characters
have equal width, which is true for most editors.

This is missing from Scintilla, but affects Scite also.

Discussion

  • Neil Hodgson

    Neil Hodgson - 2006-10-23
    • priority: 5 --> 2
    • assigned_to: nobody --> nyamatongwe
     
  • Neil Hodgson

    Neil Hodgson - 2006-10-23

    Logged In: YES
    user_id=12579

    Duplicate of 1253522.

     
  • Neil Hodgson

    Neil Hodgson - 2009-04-28
    • milestone: --> Completed
    • status: open --> closed
     
  • Neil Hodgson

    Neil Hodgson - 2009-04-28

    Can now automatically change to fit longest line displayed.

     

Log in to post a comment.