fix bug in 'TextBuilderUtils.initEnv'. When we have a wide enough space that we can centre the text, we set the 'scrollColumnEnd' field to the length of how many columns we can display. However, we want 'scrollColumnEnd' to contain the last column that can be drawn, not the length of how many columns we can draw. So now we have fixed tis.
This commit is contained in:
@@ -133,7 +133,7 @@ struct
|
|||||||
, startY = 5
|
, startY = 5
|
||||||
|
|
||||||
, scrollColumnStart = visualScrollColumn
|
, scrollColumnStart = visualScrollColumn
|
||||||
, scrollColumnEnd = TC.textLineCount
|
, scrollColumnEnd = visualScrollColumn + TC.textLineCount
|
||||||
|
|
||||||
, lastLineNumber =
|
, lastLineNumber =
|
||||||
let
|
let
|
||||||
|
|||||||
Reference in New Issue
Block a user