a2stuff / a2d

Disassembly of the Apple II Desktop - ProDOS GUI
https://a2desktop.com
261 stars 20 forks source link

horizontal scroll viewable area is too large in file type view #792

Closed xandark closed 2 months ago

xandark commented 2 months ago

The horizontal scrollbar in the file Type view only goes away if the window is resized to show a lot of whitespace padding to the right of the date/time.

In the first screen shot, the horizontal scrollbar is present even when it shouldn't be:

Screenshot 2024-04-13 (22:14:59)

But resize the window just one more pixel wider and it disappears:

Screenshot 2024-04-13 (22:15:11)

This tells me that the horizontal scroll viewable area is too large.

inexorabletash commented 2 months ago

The sizing is based on the maximum possible date string length rather computing the actual width. So if you had files from September it would look correct.

I'll take a look to see how hard it would be to make it precise, but it's probably not worth the effort.

inexorabletash commented 2 months ago

Ah but if it calculates correctly when you resize then there's just a missing call somewhere...

inexorabletash commented 2 months ago

Okay... I was right, the list view size is fixed - rather than calculating the actual date widths a fixed value is used. There was a glitch where the calculation wasn't quite right.

That said, this does mean that short dates (e.g. "April 1, 2024 at 1:11 PM") leave a lot of space to the right. It looks better with longer dates (e.g. "September 30, 2024 at 2:34 PM")

MacOS System 6 and prior doesn't enable the horizontal scrollbar for list views! System 7 seems to have a fixed width as well. Given that... I'm going to close this out but if someone wants to take a stab at really fixing and it's not too much code or performance hit, I can advise.