You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Win10, the display scale of the system is 125%, MarkText version is v0.16.1 when the document content is more than one page, the use of the search function, find the next matching text automatic positioning function failed. If the display scale of the system is adjusted to 100%, the automatic locating function of finding the next matching text will return to normal.
Can you reproduce the issue?
Steps to reproduce
Set the system display scaling ratio to 125% in Windows 10
Open the document with marktext
Ctrl + F, Look for the text that appears on the next page; the document does not automatically scroll to where the text appears
Set the system display scaling ratio to 100% in Windows 10
Repeat steps 2 and 3 to find that the function is back to normal
Expected behavior: The find function is also normal at 125% of system display
Actual behavior: The find function is also normal at 125% of system display
Link to an example: [optional] The find function is only normal if the system displays a 100% ratio
Thank you for this report. The search scroll behavior was completely rewritten in the new editor engine (packages/muya). The active match is now highlighted via a CSS class and the editor scrolls to it using getBoundingClientRect(), which returns CSS (logical) pixel coordinates that are already DPI-independent. The old code path that mis-calculated scroll position at non-100% Windows display scales no longer exists. This issue should not reproduce in current builds. We are closing it as resolved by the engine migration.
Activity
fix(window): clamp restored window size to the work area
Jocs commentedon Jun 27, 2026
Thank you for this report. The search scroll behavior was completely rewritten in the new editor engine (packages/muya). The active match is now highlighted via a CSS class and the editor scrolls to it using getBoundingClientRect(), which returns CSS (logical) pixel coordinates that are already DPI-independent. The old code path that mis-calculated scroll position at non-100% Windows display scales no longer exists. This issue should not reproduce in current builds. We are closing it as resolved by the engine migration.
fix: cherry-pick seven upstream fixes; cure state-clone aliasing
fix(window): clamp restored window size to the work area
fix(window): clamp restored window size to the work area (#4317)