File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Sources/CodeEditTextView/TextLayoutManager Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ extension TextLayoutManager {
2727 /// The thing that makes this layout method so fast is the second point, checking if a line needs layout. To
2828 /// determine if a line needs a layout pass, the layout manager can check three things:
2929 /// - **1** Was the line laid out under the assumption of a different maximum layout width?
30- /// Eg: If wrapping is toggled, and a line was initially long but now needs to be broken, this triggers that
31- /// layout pass .
30+ /// For instance, if a line was previously broken by the line wrapping setting, it won’t need to wrap once the
31+ /// line wrapping is disabled. This will detect that, and cause the lines to be recalculated .
3232 /// - **2** Was the line previously not visible? This is determined by keeping a set of visible line IDs. If the
3333 /// line does not appear in that set, we can assume it was previously off screen and may need layout.
3434 /// - **3** Was the line entirely laid out? We break up lines into line fragments. When we do layout, we determine
You can’t perform that action at this time.
0 commit comments