id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
2199	[Patch] Buttonbar mouseclicks are off	egmont	zaytsev	"Bug:

Case 1: Make the terminal window 85 characters wide. Click (with the mouse) on the right side of the ""Copy"" button on the bottom. See the Move dialog appearing instead of the Copy dialog.

Case 2: Make the terminal 42 characters wide. Click on the bottom right corner (the Re~ov button). MC invokes its menu or quits, depending on the exact click location.

There's some clever logic with displaying the bottom buttons. If the terminal window is narrower than 70 columns, each button gets 7 characters and some buttons will simply not appear at all. If the terminal window is bigger than 70 columns, but not dividable by 10, the first couple of buttons get slightly bigger than the last ones. Unfortunately, the code that handles mouse clicks does not know anything about these, it uses its own, completely different algorithm trying to figure out on which button the user clicked.

Aesthetic issue:

Resize the window to have 85 columns. Notice that the main middle vertical line (the one between the two panels), and the middle vertical line of the button bar (the one between the Copy and Move buttons) totally do not line up vertically. It's not a bug at all, but once you happen to spot it, it really looks ugly.

See the patch that solves all these. The extra space is not assigned to the first buttons, but distributed mostly evenly across buttons, guaranteeing that the first five get exactly as much (or one character less) than the second five, just as it works for the panels. Also, mouse clicks use the exact same boundaries that were used when printing the buttons."	defect	closed	major	4.7.3	mc-core	4.7.0.6	fixed						committed-master committed-stable
