Tooltips for long filenames wrong

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
funkymonk
Senior Member
Senior Member
Posts: 410
Joined: 2013-12-04, 09:56 UTC

Tooltips for long filenames wrong

Post by *funkymonk »

This is a strange one!

TC10.50rc2 x32 dark and light
Res: 3840x2160 and 1920x1080

wincmd.ini is “fresh” with these settings:
Font: Segoe UI, 11, standard
DPI: auto

Code: Select all

Tips=3
FileTipWindows=1
FileTipWindowsOnIcon=2
Win32TipWindows=1
The way to the bug:
  1. Create a new custom column view (name does not matter),
    change the width of the name column to 200,
    keep width of the ext column at 30,
    no additional columns needed.
  2. Create files with the following names (content does not matter):

    Code: Select all

    xxxxxxxxxxxxxxxxxxxxxxxxxxx.docx
    xxxxxxxxxxxxxxx.docx
    xxxxxx.docx
    xxx.pdf
    
    All file names and extensions should be entirely visible (i.e., not truncated).

Here is the bug (sorry, mouse cursor not visible in the screenshots): --> Actually, no file should show a tooltip (file names and extensions fit into their columns) – but the files with the longest and the third to longest name do!

I could only reproduce this behavior with custom columns -- regular long or short views seem to work properly.
It seems to depend on the width of the extension column:
  • For 30: as described above.
  • For 37: all docx files show the tooltip.
  • For 40: only xxxxxxxxxxxxxxx.docx shows the tooltip.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Tooltips for long filenames wrong

Post by *ghisler(Author) »

I can only partially confirm this: The tips should be shown when either the name or the extension is truncated. It seems that this is calculated WITH the dot before the extension, but shown without the dot, so it's not shortened and the tip is still displayed. However, here is shows either for all docx files or for none, not just for xxxxxxxxxxxxxxx.docx.
Author of Total Commander
https://www.ghisler.com
User avatar
funkymonk
Senior Member
Senior Member
Posts: 410
Joined: 2013-12-04, 09:56 UTC

Re: Tooltips for long filenames wrong

Post by *funkymonk »

I just retried on another PC (completely different hardware but same resolution/dpi/font settings) with identical results.

For 30: as described above.
For 37: all docx files show the tooltip.
For 40: only xxxxxxxxxxxxxxx.docx shows the tooltip.

Its strange that for a width of 37 more files show the tooltip than for a width of 30...
But it's strange in general...

UPDATE: I also tried with Consolas and Tahoma (11, standard) ... same behavior.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Tooltips for long filenames wrong

Post by *ghisler(Author) »

Well, we will see if my bugfix will work for you or not. I still can't reproduce your behaviour here.
Author of Total Commander
https://www.ghisler.com
User avatar
funkymonk
Senior Member
Senior Member
Posts: 410
Joined: 2013-12-04, 09:56 UTC

Re: Tooltips for long filenames wrong

Post by *funkymonk »

Ok, thank you for the prompt action. I will try for the next rc.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Tooltips for long filenames wrong

Post by *ghisler(Author) »

This should actually be fixed in RC3, can you test it please? For unknown reasons, the bugfix isn't mentioned in the history.txt file.
Author of Total Commander
https://www.ghisler.com
User avatar
funkymonk
Senior Member
Senior Member
Posts: 410
Joined: 2013-12-04, 09:56 UTC

Re: Tooltips for long filenames wrong

Post by *funkymonk »

Looks good with 10.50rc3.
Thank you!

I just did a quick test with the files I have tried before, but I will keep an eye on it and do some more testing.
I will let you know if I encounter the problem again.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Tooltips for long filenames wrong

Post by *ghisler(Author) »

Thanks, I will move this to fixed bugs for now. Just add a comment if you find a situation where it still occurs.
Author of Total Commander
https://www.ghisler.com
Post Reply