Lister size off-by-one

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
now
Member
Member
Posts: 181
Joined: 2006-11-01, 08:34 UTC

Lister size off-by-one

Post by *now »

(I couldn’t find any posts matching “lister window size” that refers to this problem.)

I have the following in my windcmd.ini:

[Lister]
x=152
y=114
dx=720
dy=540

The lister window, however, has the following properties:

x=152
y=114
dx=721
dy=540

Initially I figured that this was due to some fixing of the window size to accommodate for the font size and such, but whatever values i put under [Lister], the window will have dx = [Lister].dx + 1 and dy = [Lister].dy + 1.

Of course, setting [Lister].dx and [Lister].dy to the size I want - 1 works fine, but that’s more of a workaround than a solution.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

That's indeed very strange - Lister is adding 1 to both the width and height. It MUST have some reason why it is there, I just don't remember why. I fear that it would cause troubles if I removed it...
Author of Total Commander
https://www.ghisler.com
Post Reply