Line Number column auto-size error

Things you’d like to miss in the future...
Forum rules
When reporting a bug, please include the following information: your XYplorer version (e.g., v27.90.0047), your Windows version (e.g., Win 11), and your screen scaling percentage (e.g., 125%). We recommend adding your Windows version and screen scaling percentage to your profile or signature. This will make debugging much easier for us.
Post Reply
zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Line Number column auto-size error

Post by zer0 »

Using 8.10.0002 beta...

I have a folder with more than 10,000 items and have a global setting to auto-size columns in the List view. However, if there are 10,000 or more items in a folder the "Line Number" column does not auto-adjust to fit a larger number. As per screenshot below:
line_numbers.png
line_numbers.png (1.84 KiB) Viewed 1322 times
EDIT: Just tried with the latest beta and the error still persists. I know that there is nothing in the changelog to indicate a fix for this being present, I just thought maybe some glitch caused it. Turns out it isn't so...
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

admin
Site Admin
Posts: 64901
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Line Number column auto-size error

Post by admin »

It does not auto adjust: You adjust it manually.

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Line Number column auto-size error

Post by zer0 »

admin wrote:It does not auto adjust: You adjust it manually.
Is there a reason why the Line Num column does not auto-adjust? It's an optional column, so unless there are severe performance penalties for checking if no. of items in a folder is > 10,000, I couldn't think of advantages for this discrepancy. I would very much prefer for all columns to be treated equally in terms of List Style settings :?
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

admin
Site Admin
Posts: 64901
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Line Number column auto-size error

Post by admin »

zer0 wrote:
admin wrote:It does not auto adjust: You adjust it manually.
Is there a reason why the Line Num column does not auto-adjust? It's an optional column, so unless there are severe performance penalties for checking if no. of items in a folder is > 10,000, I couldn't think of advantages for this discrepancy. I would very much prefer for all columns to be treated equally in terms of List Style settings :?
It's not a column, it just looks like one. :)

It does not auto-adjust because that would mean a flickering column width whenever you are loading a larger folder: 1 digit, 2, 3, 4... not nice. Simply set it 5 digits and you should be on the safe side.

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Line Number column auto-size error

Post by zer0 »

admin wrote:It's not a column, it just looks like one. :)

It does not auto-adjust because that would mean a flickering column width whenever you are loading a larger folder: 1 digit, 2, 3, 4... not nice. Simply set it 5 digits and you should be on the safe side.
So it looks like a column, can be added/removed like a column, contains data that is typical of a column, is adjustable like a column, has a name like a column...yet it's not a column. Bizarre, to say the least.

Regarding a larger folder, I have a folder with over 130,000 (don't ask ;)) files in it. What happens when I browse to it from a cold start is that XY gathers info about this folder, but doesn't apply my List View settings immediately. Once this info is gathered, the List View settings are applied. Therefore, I fail to see how a column's width would flicker in the situation you've described.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

admin
Site Admin
Posts: 64901
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Line Number column auto-size error

Post by admin »

zer0 wrote:
admin wrote:It's not a column, it just looks like one. :)

It does not auto-adjust because that would mean a flickering column width whenever you are loading a larger folder: 1 digit, 2, 3, 4... not nice. Simply set it 5 digits and you should be on the safe side.
So it looks like a column, can be added/removed like a column, contains data that is typical of a column, is adjustable like a column, has a name like a column...yet it's not a column. Bizarre, to say the least.

Regarding a larger folder, I have a folder with over 130,000 (don't ask ;)) files in it. What happens when I browse to it from a cold start is that XY gathers info about this folder, but doesn't apply my List View settings immediately. Once this info is gathered, the List View settings are applied. Therefore, I fail to see how a column's width would flicker in the situation you've described.
130,000 -- so now it's clear that you are a mad man! :mrgreen:

The list is filled continuously. XY does not know how much files will be in it finally (pity that NTFS cannot simply tell it without counting). So how would you do it?

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Line Number column auto-size error

Post by zer0 »

admin wrote:130,000 -- so now it's clear that you are a mad man! :mrgreen:
Indeed, I must be, but, thankfully, that's is simply one of my storage repositories.
admin wrote:The list is filled continuously. XY does not know how much files will be in it finally (pity that NTFS cannot simply tell it without counting). So how would you do it?
While the list may be filled continuously, the visual adjustments of the List View do not take place until the list is filled. At least, that appears to be my impression by what I am experiencing. Just tried it again and the Status bar reported the following sequence: counting the number of items in a folder -> "sorting..." -> "auto-sizing columns...". Since there are three clear stages and only after the 3rd one I see the List View appear according to my settings, then what's there to cause flickering of a column? :?
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

admin
Site Admin
Posts: 64901
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Line Number column auto-size error

Post by admin »

zer0 wrote:
admin wrote:130,000 -- so now it's clear that you are a mad man! :mrgreen:
Indeed, I must be, but, thankfully, that's is simply one of my storage repositories.
admin wrote:The list is filled continuously. XY does not know how much files will be in it finally (pity that NTFS cannot simply tell it without counting). So how would you do it?
While the list may be filled continuously, the visual adjustments of the List View do not take place until the list is filled. At least, that appears to be my impression by what I am experiencing. Just tried it again and the Status bar reported the following sequence: counting the number of items in a folder -> "sorting..." -> "auto-sizing columns...". Since there are three clear stages and only after the 3rd one I see the List View appear according to my settings, then what's there to cause flickering of a column? :?
Ok, I did not think of "auto-sizing columns" (I never use this myself). Indeed it would be possible to adjust it after the list is fully loaded -- from the user POV. I can't say right now whether it's (easily) possible from the developer POV -- if yes, I will add it, else prio is too low.

Post Reply