From c9d3ccdf0d5df2c88bbcdda56ba9529de9f976b1 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Sat, 13 Jun 2026 18:42:34 +0200 Subject: [PATCH 1/2] fixed: top was not applied to style --- AppKit/CPTextView/CPLayoutManager.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPTextView/CPLayoutManager.j b/AppKit/CPTextView/CPLayoutManager.j index fd0accf43..98908f044 100644 --- a/AppKit/CPTextView/CPLayoutManager.j +++ b/AppKit/CPTextView/CPLayoutManager.j @@ -1378,7 +1378,7 @@ var _objectsInRange = function(aList, aRange) if (_runs[i].view) _runs[i].view._frame.origin.y += verticalOffset; - _runs[i].elem.top = (_runs[i].elem.top + verticalOffset) + 'px'; + _runs[i].elem.style.top = parseFloat(_runs[i].elem.style.top + verticalOffset) + 'px'; _runs[i].DOMpatched = YES; } } From c9df6e4d25e978867ca2139e1a8dc469a5a705b4 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Sat, 13 Jun 2026 19:18:12 +0200 Subject: [PATCH 2/2] removed: dead code --- AppKit/CPTextView/CPLayoutManager.j | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/AppKit/CPTextView/CPLayoutManager.j b/AppKit/CPTextView/CPLayoutManager.j index 98908f044..74cd87b40 100644 --- a/AppKit/CPTextView/CPLayoutManager.j +++ b/AppKit/CPTextView/CPLayoutManager.j @@ -1373,12 +1373,11 @@ var _objectsInRange = function(aList, aRange) { _runs[i]._range.location += rangeOffset; - if (verticalOffset && _runs[i].elem) + if (verticalOffset) { if (_runs[i].view) _runs[i].view._frame.origin.y += verticalOffset; - _runs[i].elem.style.top = parseFloat(_runs[i].elem.style.top + verticalOffset) + 'px'; _runs[i].DOMpatched = YES; } }