User forums > Using Code::Blocks
Extra horizontal blank space in the editor?
Jenna:
It would be no problem to set the default ScrollWidth to something less than it is now, but this would cut longer lines if "Automatically determine the width of the horizontal scrollbar" is not set (unless the user moves the caret to the last position via keyboard).
It's possible to make the initial ScrollWidth configurable, but I'm not sure if this is really needed (we already have very much configure options).
danh:
I'm a little confused again. You haven't said this explicitly, jens, but it sounds like the behavior I'm seeing is *not* a bug, and is in fact the intended behavior. Is this correct?
oBFusCATed:
Probably, yes.
And Prabably "Automatically determine the width of the horizontal scrollbar" is off by default to improve the performance of the editor.
Jens, Am I right?
Jenna:
Yes and no.
The default ScrollWidth, set in scintillas Editor.cxx:146 is 2000 (I guess pixels, but I am not sure about that).
But it's intended, that we do not change it, because almost every text fits into it.
Making it configurable can be an option, but should be discussed, but I did not find an option to use a character count as ScrollWidth, just the pixels (or whatever it is).
Because of users having very long lines I added the "Automatically determine ..." stuff.
vid512:
Ressurecting this topic, because I got the same misconception as original poster. Maybe the "Automatically determine the width of the horizontal scrollbar" should be renamed to "Automatically expand the width of the horizontal scrollbar", in order to make it clear that this option won't shrink the width below the default?
Navigation
[0] Message Index
[*] Previous page
Go to full version