File list scrolling additional lines when the drive combo box is hidden

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

User avatar
Yincognito
Junior Member
Junior Member
Posts: 18
Joined: 2024-04-28, 15:18 UTC
Location: Terra Incognita

File list scrolling additional lines when the drive combo box is hidden

Post by *Yincognito »

Steps to reproduce (the bug doesn't seem to occur on TC 9.12, but occurs on TC 11.00+, with both run as an administrator after pinning to taskbar)
1) use something like these sample settings, for convenience:

wcx_ftp.ini:

Code: Select all

[General]
ConnectRetries=10
WaitDelay=5
transfermode=I
LogFile=
FtpInBackground=0
ModeZ=1
AutoResume=30
[default]
pasvmode=0
wincmd.ini:

Code: Select all

[Configuration]
InstallDir=C:\Program Files\Total Commander
UseNewDefFont=1
SetEncoding=äö.do.not.remove
firstmnu=2616
FirstTimeIconLib=0
FirstTime=0
SeparateTree=0
PanelsVertical=0
test=91
Aligned extension=1
ShowHiddenSystem=1
UseLongNames=1
Small83Names=0
OldStyleTree=0
autotreechange=0
DirBrackets=1
ShowParentDirInRoot=0
SortDirsByName=1
Tips=3
FileTipWindows=1
Win32TipWindows=0
SortUpper=0
IconOverlays=1
IconsSpecialFolders=3
Showicons=2
ShowEXEandLNKicons=2
IconsInMenus=17
IconsOnNet=1
ShowHiddenSystemOverlay=1
ShowCentury=1
SizeStyle=0
SizeFooter=0
onlyonce=0
TrayIcon=0
UseRightButton=1
Savepath=0
Savepanels=0
MarkDirectories=1
AlwaysToRoot=0
SingleClickStart=0
RenameSelOnlyName=0
SaveCommands=0
SaveHistory=0
EverythingForSize=0
CountSpace=1
CountMarked=1
1hourdif=0
CopyComments=6
CommentPreferredFormat=4
IconClickSelection=1
DirTabOptions=824
DirTabLimit=32
ExplorerForCopy=0
Win95Delete=0
UseTrash=0
LogOptions=7198
LogRotateLimit=0
LogKeepCount=30
CompareCaseSensitive=0
CompareIgnoreRepSpace=1
CompareIgnoreRepeatedLines=1
CompareVertical=0
CompareBytesPerLine=8
LastSearchOptions=32
FirstTimeUnpack=0
FirstTimeZIP=0
[ButtonbarCache]
IconDll_default.bar=TCNewLib1
IconDll_vertical.bar=TCNewLib1
[Buttonbar]
DefaultLib=wcmicon2
[FileSystemPlugins64]
$checksum$=3014672
[ListerPlugins64]
$checksum$=3014672
[ContentPlugins64]
$checksum$=3014672
[left]
path=c:\
ViewMode=10001
activepanelcolor=-1
activepanelcolor2=-1
ShowAllDetails=1
SpecialView=0
show=1
sortorder=1
negative Sortorder=0
[right]
path=f:\
ViewMode=10001
activepanelcolor=-1
activepanelcolor2=-1
ShowAllDetails=1
SpecialView=0
show=1
sortorder=1
negative Sortorder=0
[Layout]
ButtonBar=0
ButtonBarVertical=0
DriveBar1=1
DriveBar2=1
DriveBarFlat=1
InterfaceFlat=1
DriveCombo=1
DirectoryTabs=1
XPthemeBg=1
CurDir=1
TabHeader=1
StatusBar=1
CmdLine=1
KeyButtons=1
HistoryHotlistButtons=1
BreadCrumbBar=1
[Tabstops]
0=465
1=470
3=522
4=359
6=1106
5=103
AdjustWidth=1
[Colors]
InverseCursor=1
ThemedCursor=1
InverseSelection=0
BackColor=0
BackColor2=-1
ForeColor=16776960
MarkColor=-1
CursorColor=-1
CursorText=-1
[Lister]
Wrap=0
Maximized=0
x=230
y=150
dx=1439
dy=759
textwidth=81
binwidth=75
SearchGoBack=3
BmpStartup=1
Multimedia=1
RTF=1
IView=0
IViewPath=i_view32.exe
HTMLasText=1
LinkBraces=1
[Packer]
ZIPlikeDirectory=1
InternalUnarj=1
ARJlongnames=0
InternalUnlzh=1
InternalUnrar=1
InternalUnace=1
LinuxCompatible=1
ARJ=""C:\Program Files\WinRAR\WinRAR.exe""
LHA=""C:\Program Files\WinRAR\WinRAR.exe""
RAR=""C:\Program Files\WinRAR\WinRAR.exe""
UC2=uc.exe
ACE=""C:\Program Files\WinRAR\WinRAR.exe""
[1920x1080 (8x16)]
RenameX=230
RenameY=150
RenameDX=1439
RenameDY=759
RenameMax=0
RenameTabs=350,400,800,920,1039
CompareX=230
CompareY=150
CompareDX=1439
CompareDY=759
CompareMax=0
CompareDivider=500
Tabstops=465,470,522,359,1106,103
maximized=1
x=410
y=125
dx=1100
dy=800
Divider=500
DividerQuickView=500
DividerComments=500
2) uncheck Configuration / Options... / Layout / Show Drive Combobox and hit Apply
3) stay or go to a folder with many subfolders and files (e.g. C:\Windows), so that the file list is scrollable
4) scroll down at least two notches or the equivalent of eight+ items, so that the .. parent folder isn't visible at the top of the file list
5) double click to enter a folder towards the bottom of the visible file list (preferably from the last four or five)
6) double click on the .. parent folder to return to the initial folder
7) watch closely how the file list is quickly scrolled down one or two more lines while performing the previous step

Other considerations:
- this happens only when entering the subfolder and returning to the main folder via double clicking, it doesn't happen when using the ENTER key
- the bug might be related to the Configuration / Options... / Operation / Extra Lines Below Cursor option, which didn't exist in TC 9.12, for example
- despite my initial suspicions, this doesn't seem to necessarily be related to the height of the TC main window and its divisibility by 16 pixels
- the whole point of trying TC 11.00+ is to use it with the drive combobox hidden, since it now shows mobile drives as u1 drive buttons and such

Let me know if you can reproduce it, if you need further details, or of ways to mitigate / eliminate this problem (if possible without waiting for a future TC version correcting the issue, that is). Great software, by the way!
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: File list scrolling additional lines when the drive combo box is hidden

Post by *petermad »

This seems to be very related to this: viewtopic.php?t=80189
it doesn't happen when using the ENTER key
Here by me it also happens with the Enter key.

Work-around - go back to the parent folder with Alt+ArrowLeft
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Yincognito
Junior Member
Junior Member
Posts: 18
Joined: 2024-04-28, 15:18 UTC
Location: Terra Incognita

Re: File list scrolling additional lines when the drive combo box is hidden

Post by *Yincognito »

petermad wrote: 2024-04-28, 18:21 UTC This seems to be very related to this: viewtopic.php?t=80189
it doesn't happen when using the ENTER key
Here by me it also happens with the Enter key.

Work-around - go back to the parent folder with Alt+ArrowLeft
Thank you very much for the quick and informative reply!

Yes, it seems to be very similar to the issue described in the thread you linked to, indeed. Unfortunately, it seems that if 7 (!) months already passed and there has been no solution to that, let alone an acknowledgement from the developer, there isn't ever going to be one, which is a pity. What I meant is that the quick visual jump / scroll by one line doesn't happen for me when using the Enter key, because otherwise the (wrongly scrolled, i.e. off by one or two list items) end result is more or less the same compared to double-clicking.

Thank you for the workaround, I'll keep that in mind if I'll decide that I want to put up with this behavior. Right now I'm reluctant to do so partly because both the said "jump" and the workaround are highly inconvenient and partly because I noticed other unwanted effects of the otherwise theoretically helpful "extra lines" setting (at least in the previous TC versions). I guess my options are to either uncheck the setting and accept the minor drawback of having the selected parent folder always the last in the list when navigating back to it irrespective of its earlier position, or continuing to use the tried and tested 9.12 version which didn't fail me once. After all, I can replicate the dark mode via background coloring in that version, though I can't have my phone as a drive button, only as a drive combo box item.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: File list scrolling additional lines when the drive combo box is hidden

Post by *ghisler(Author) »

I have tried to reproduce the problem, but I do not see any additional scrolling. Maybe by graphics card is too fast?
Anyway, have you tried the option "Extra lines below cursor"? It ensures that the line with the cursor isn't at the very bottom when you go up one level, so you can see what the next few folders would be.
This seems to be very related to this: viewtopic.php?t=80189
That happens because Total Commander does NOT remember which line was at the top when leaving a directory, just which line was under the cursor. So when you go up, Total Commander just scrolls that directory into view (considering "Extra lines below cursor").
Author of Total Commander
https://www.ghisler.com
User avatar
Yincognito
Junior Member
Junior Member
Posts: 18
Joined: 2024-04-28, 15:18 UTC
Location: Terra Incognita

Re: File list scrolling additional lines when the drive combo box is hidden

Post by *Yincognito »

ghisler(Author) wrote: 2024-04-29, 07:57 UTC I have tried to reproduce the problem, but I do not see any additional scrolling. Maybe by graphics card is too fast?
Anyway, have you tried the option "Extra lines below cursor"? It ensures that the line with the cursor isn't at the very bottom when you go up one level, so you can see what the next few folders would be.
Thanks for responding!

I doubt that the speed of my video card is the reason why I'm seeing this - my laptop has the integrated AMD Radeon Vega 6 with 0.5 GB reserved memory, as well as the discrete NVidia Geforce GTX 1650 with 4 GB own memory video cards in use, so while they're not exactly the best on the market, they're not bad either. I tried the "Extra lines below cursor" option, and besides disabling it or setting it to 0, it produces the same 1 line jump / scroll when returning to the parent folder (I recorded the behavior in the GIF below, you can go frame by frame and see it better if you want):

Image: https://i.ibb.co/82zw97n/Desktop-2024-04-29-13-47-40-048-ezgif-com-optimize.gif

In fact, I think the "extra lines..." option might play a part in the issue, since TC 9.12 which didn't have it (or at least, it wasn't available in the TC settings) does not experience the problem at all. That option and unchecking the Configuration / Options... / Layout / Show Drive Combobox option seem to be the "culprit". It's like TC expects the drive combobox to be there in the 1st phase, and then when it isn't it quickly "corrects" the list position by scrolling yet another line.

In short, I don't have a particular problem with the "extra lines..." option in this case, it's the visual glitch caused by scrolling an additional line that bothers me. I don't particularily like the option either, since it gives the impression that the "viewport" of the list is vertically shorter when scrolling, but as someone with a bit of background in programming (wrote a Dos Navigator similar but unfinished file manager back in the DOS days, also in Pascal), I understand its necessity.
reenstix
Junior Member
Junior Member
Posts: 16
Joined: 2021-11-27, 20:15 UTC

Re: File list scrolling additional lines when the drive combo box is hidden

Post by *reenstix »

I have experienced exactly the same behaviour myself. The problem has existed since version 9.x. It does not cause any errors, but it can be annoying. However, I noticed that this behaviour does not occur at all with the 32 bit version of TC.
One more thing, if it was caused by the graphics card or some external factor, it should not make any difference whether you go to the main folder via double clicking or by using the enter key, and here, when using the enter key, it is as it should be.
User avatar
Yincognito
Junior Member
Junior Member
Posts: 18
Joined: 2024-04-28, 15:18 UTC
Location: Terra Incognita

Re: File list scrolling additional lines when the drive combo box is hidden

Post by *Yincognito »

reenstix wrote: 2024-07-18, 20:39 UTCHowever, I noticed that this behaviour does not occur at all with the 32 bit version of TC.
For me, it doesn't occur on the 64 bit version of TC 9.12 either. Didn't test any version between 9.12 and 11.00 though.
reenstix
Junior Member
Junior Member
Posts: 16
Joined: 2021-11-27, 20:15 UTC

Re: File list scrolling additional lines when the drive combo box is hidden

Post by *reenstix »

I meant that the problem occurred somewhere in some version of 9, I do not remember exactly from which version, that is why I wrote 9.x. When I find some time, I will try to find the exact version from which it started. If you can, please check on the latest 32 bit version and let us know if this problem does not occur.
User avatar
Yincognito
Junior Member
Junior Member
Posts: 18
Joined: 2024-04-28, 15:18 UTC
Location: Terra Incognita

Re: File list scrolling additional lines when the drive combo box is hidden

Post by *Yincognito »

reenstix wrote: 2024-07-19, 20:31 UTCIf you can, please check on the latest 32 bit version and let us know if this problem does not occur.
You're right!

I just installed it from the 'tcmd1103x32.exe' (RC6, I assume) on the official page, and the issue did indeed not occur for that 32 bit version - I performed both the 2) to 7) steps from my OP, as well as the 1) to 7) ones just to be sure.

I then tried the 64 bit one from the same version and page, and the issue occured again after performing just the 2) to 7) steps in the OP - I didn't even have to set everything up like in the sample settings at 1), just untick the Show Drive Combobox and hit Apply, like explained at the 2) step.

Hopefully this will help in identifying where the problem comes from, if anyone is still interested. :wink:
reenstix
Junior Member
Junior Member
Posts: 16
Joined: 2021-11-27, 20:15 UTC

Re: File list scrolling additional lines when the drive combo box is hidden

Post by *reenstix »

I found some time and if I am not mistaken this problem has occurred since version 9.50x64, and the last good version was 9.22ax64. You do not need to change any settings to reproduce this bug.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: File list scrolling additional lines when the drive combo box is hidden

Post by *ghisler(Author) »

I'm really sorry but I still can't reproduce it. I used the wincmd.ini from the first post and disabled the drive dropdown list in Configuration - Options - Layout, then changed directories in c:\windows as instructed. No scrolling was observed. This is on Windows 11 if that matters.

Video recorded with Windows snipping tool:
https://www.totalcommander.ch/img/go_to_parent.mp4
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: File list scrolling additional lines when the drive combo box is hidden

Post by *petermad »

reenstix wrote: 2024-07-24, 08:32 UTC this problem has occurred since version 9.50x64, and the last good version was 9.22ax64.
I tested a little what happen when going up-dir, either by double-clicking or pressing Enter on [..] or by pressing Backspace.
Tested with TC window height set so the last line in the file panel is in full view.

WC 3.01 - TC 9.51:
TC scrolls the window so at least 3 lines (if possible) are visible under the highlighted folder when pressing Enter/Backspace to go up-dir.
If double-clicking is used to go up-dir, one more line is shown and is scrolled into position after the 3 lines under the folder are shown.

TC 10.0b1a - 11.03:
TC always scrolls the window so at least the number of lines in the setting "Extra lines below cursor" minus 1 are visible under the highlighted folder when pressing Enter/Backspace to go up-dir.
If double-clicking is used to go up-dir, one more line is shown and is scrolled into position after the first 3 lines under the folder are shown.
If "Extra lines below cursor" is set to 1 or 0 or is disabled, TC scrolls the highlighted folder to the very bottom if [..] is not visible.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
reenstix
Junior Member
Junior Member
Posts: 16
Joined: 2021-11-27, 20:15 UTC

Re: File list scrolling additional lines when the drive combo box is hidden

Post by *reenstix »

Thank you for your interest in this topic. I am using Windows 10, but for testing purposes I have set up a VM with Windows 11 and indeed this problem does not occur. As I wrote earlier there is no need to change any settings to repeat this bug. I have recorded a short video after a clean installation where you can clearly see what we are talking about.
https://youtu.be/8q3cDcyOpTE
Last edited by reenstix on 2024-07-24, 15:00 UTC, edited 1 time in total.
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: File list scrolling additional lines when the drive combo box is hidden

Post by *petermad »

I have made this video: https://tcmd.madsenworld.dk/folderscroll.mp4

The first and the third time I go into and out of System32 I use the mouse, the second time I use the Enter key.
Notice that the Temp dir is not visible at once when going back to System32 - it is easiest to see the third time.
Notice that going updir by pressing Enter only shows 3 lines under System32.

You can see the same under Windows 10: https://tcmd.madsenworld.dk/folderscrollW10.mp4
Notice that if I repeat going in and out of System32 by double-clicking then it is not every time that the extra line is scrolled in, some times only 3 lines are shown under Syetem32.

I also noticed that if I set SingleClickStart=1 then navigating with the mouse behaves like navigating with pressing Enter - only 3 line as added under the folder.

Another peculiar thing - Usually when setting "Extra lines below cursor" to 4 via the GUI, both ScrollingTopMargin and ScrollingBottomMargin are set to 4. But if I manually set:

Code: Select all

ScrollingTopMargin=0
ScrollingBottomMargin=4
And I then go into System32 and restart TC with cm_Exit 9 - then every second time I go in and out of System32 there are no extra lines below the System32 if I navigate with double-click

If I with this setting navigate with Enter, then there are always no extra lines below the folder, when I go back up to Windows 32 - but if I thereafter press the down-arrow one time, then 4 lines are scrolled into position under System32.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Yincognito
Junior Member
Junior Member
Posts: 18
Joined: 2024-04-28, 15:18 UTC
Location: Terra Incognita

Re: File list scrolling additional lines when the drive combo box is hidden

Post by *Yincognito »

Thanks for your interest, guys! Yes, the videos posted by reenstix and petermad illustrate precisely what I was talking about (I should have posted a video instead of a gif earlier in the topic as well, for better observation). The differences between Win 10 and Win 11 could indeed make reproducing this difficult or impossible otherwise on the latter OS. Even more so if petermad's 1st posted video was recorded on Windows 7 (if my assumption is correct, that is).
Post Reply