Double click on splitter to set it to 50/50%

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Dark-Star
Junior Member
Junior Member
Posts: 74
Joined: 2004-12-01, 14:15 UTC
Location: Reutlingen, GERMANY

Double click on splitter to set it to 50/50%

Post by *Dark-Star »

There seems to be a small glitch with that feature.

Try this: move the splitter to the side somewhere. Then double-click it to move it back to the center.
Now, click on it while keeping the CTRL key pressed. This snaps the splitter to 25%, 50% and 75% positions. Let it snap to the 50% position and observe closely: The splitter moves a few pixels to the right.

It seems to depend on where you double-click within the splitter-bar (right or left). It is hard to see because the splitter is so narrow, though.
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

But at the end it lands at 50% right? I think it happens because a single click is sent before the doubleclick, so it positions the splitter first as a result of a "drag" (mouse down not exactly in the center and release acts as if you have dragged the splitter), and then it processes the double click.
I switched to Linux, bye and thanks for all the fish!
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

It actually seems to produce different results. Try first to Double-click the divider, and after that Ctrl-click it - the divider is permanently moved a little to the right. Double-click places the divider in the same place as cm_50Percent does.

Saving the position obtained by Ctrl-click saves it to the same place as saving the position obtained by Double-click though.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
TealC
Junior Member
Junior Member
Posts: 96
Joined: 2005-08-10, 11:34 UTC

Post by *TealC »

also with 6.55
move the splitter around a bit, then move back to the middle again by right click, select 50/50.

then hit ctrl, left click, move around, go to 50/50 again, release the mouse butten, and it also moves a few pixels...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed these are rounding errors. You get a different between the calculations of percentage (50%) -> pixels, and the opposite, pixels -> percentage. I will try to find a workaround.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Fixed in TC7rc1 :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Author of Total Commander
https://www.ghisler.com
Post Reply