Tabs with html documents scroll when switching



  • Hello,

    Whenever I work at the end of a html document, switch to another tab in between and then go back, I have to scroll down each time. For plain text files I do not have the problem, they stay in the same position. Can I configure that somewhere?

    Have a good weekend

    Wolfgang



  • welcome to the notepad++ community, @Wolfgang-Duehrkop

    if you have xml tools installed, please go to the menu Plugins > XML Tools and disable Set XML type automatically

    (see @dail 's original answer here:
    https://notepad-plus-plus.org/community/topic/33/return-to-same-line-when-switching-tabs/3 )

    if this is not the cause of your issue, please go to the menu ? > Debug Info... > Copy Debug Info to Clipboard and paste the debug information here.



  • Hello Meta,
    tnx for your answer!
    xml tools are not installed, but when I do it and disable Set XML type automatically it’s the same.
    Debug Info:
    Notepad++ v7.6.3 (64-bit)
    Build time : Jan 27 2019 - 17:16:47
    Path : C:\Program Files\Notepad++\notepad++.exe
    Admin mode : OFF
    Local Conf mode : OFF
    OS : Windows 10 (64-bit)
    Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll _CustomizeToolbar.dll

    Can you help me?

    Wolfgang



  • @Wolfgang-Duehrkop

    thank you for your reply and detailed debug information.

    you are correct.
    i can confirm that this scroll-up displacement when changing tabs, happens with .html files that have very long lines, and only if the option view > word wrap is enabled.

    note: your cursor stays at the correct position, and once you’ve changed back to your html document, and start typing, the editor window will jump back down to where you left off before switching tabs.

    we will try to find any possible workarounds, to enable the use of word wrap (line wrap) in conjunction with html code.


    in the mean time, the first workaround would be to move your document to be edited to a side by side split screen view as seen at the screenshots below.

    (right click on your html document’s tab and select move to other view, which will open it separately to the right of all other document tabs, similar to a norton commander view.)

    Imgur

    this way you can edit the document at the right panel view, and switch through multiple tabs on the left panel view.

    any tab switches on the left will not affect the right panel view.
    (or vice versa, if you prefer to have your html document on the left, and browse your coding reference tabs on the right)

    Imgur


    note: if we do not succeed in finding better worarounds, you can also file an issue report to the developers, by following the official community guide: >>> FAQ Desk: Feature Request or Bug Report <<<



  • Hello Meta,
    thank you for your detailed information!

    The workaround works as indicated, but becomes confusing when dealing with multiple documents. I have now looked at GitHub, the topic has been raised several times. If I read that correctly, the bug should have been fixed in the previous version, but I do not really see through the mess. So first of all I leave everything in the old and wait.

    A nice upcoming weekend

    Wolfgang


Log in to reply