notepad-plus-plus / notepad-plus-plus/notepad-plus-plus

Scroll bar not synced after Clone to Other view

Open
#12,112 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
29.4k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Description of the Issue

When Clone to Other View is clicked, the new window leaves the scroll bar at the top and is not matching the original document.
It corrects itself when the second window is scrolled.

Steps to Reproduce the Issue
  1. Click Clone to Other View
  2. See the new scroll bar in the new window is at the top.
Expected Behavior

New cloned window scroll bar should match original document scroll bar position

Actual Behavior

New cloned window doesn't match original scroll bar position.

Debug Information

Notepad++ v8.4.4 (64-bit)
Build time : Jul 15 2022 - 17:54:42
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line : "C:\projects\Alan\Clean2\src\renderer.js"
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 11 (64-bit)
OS Version : 21H2
OS Build : 22000.918
Current ANSI codepage : 1252
Plugins :
DSpellCheck (1.4.24)
mimeTools (2.8)
NppConverter (4.4)
NppExport (0.4)
NppFTP (0.29.9)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the Clone to Other View command and how the new window initializes its document view and scroll position. Reproduce the issue on Windows, then verify that the cloned window's scrollbar matches the original immediately after cloning, before either window is scrolled.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.