Page 1 of 1

[fixed in v24.50.0012] Renaming folders with a long name in the tree pane can disrupt the name alignment

Posted: 11 Jun 2023 17:12
by daniel_m
Sorry for the weird title. I wasn't sure how to explain the issue in few words :biggrin:.
When "Show name length while renaming [Sort and Rename - Rename]" is enabled, the name length can lead to a misalignment of "overly long" (longer than the tree width) folder names while renaming.

Upon renaming, the folder name gets aligned right, with its length shown to the right of it. This works fine, even with folder names that are wider than the tree pane. Placing the cursor near the end of an overly long file name and typing, the folder name gets realigned and the cursor and newly typed text are covered by the name length information.

It looks like the alignment does not take the name length display into account when typing new text. Interestingly, the cursor indicator is displayed (wrongly) just to the left of the name length information. Even though the actual cursor position is further right and covered by the name length information.
xy_folder name.png

When I rename the same folder in a tab instead of the tree, the alignment is correct, and XYplorer correctly realigns the file name with every newly typed character. In the tree pane, it works correctly when "Show name length while renaming" is disabled.

Re: Renaming folders with a long name in the tree pane can disrupt the name alignment

Posted: 12 Jun 2023 09:08
by admin
I cannot really see it here. What is your screen resolution, 125%?

Re: Renaming folders with a long name in the tree pane can disrupt the name alignment

Posted: 12 Jun 2023 14:11
by daniel_m
My screen resolution is 3840x2160 at 100%. The XYplorer windows is 2428x2140.

Hm, I'll try a fresh XYplorer installation... ok, after deleting my Data folder and enabling "Show name length while renaming", XYplorer (24.50) started in a small 1639x1308 window and showed the described behaviour. :?:

Re: Renaming folders with a long name in the tree pane can disrupt the name alignment

Posted: 12 Jun 2023 14:16
by admin
"...after deleting my Data folder"? To try a fresh instance just use fresh; in the address bar.

Re: Renaming folders with a long name in the tree pane can disrupt the name alignment

Posted: 12 Jun 2023 14:32
by daniel_m
Well, I lied when I said I deleted my Data folder :biggrin: . I moved it out of the XYplorer folder while XYplorer was closed. And I moved it back after testing. But "fresh;" sure is helpful, and I will use it in the future :appl: (of course, it behaved the same as with the moved Data folder)

Re: Renaming folders with a long name in the tree pane can disrupt the name alignment

Posted: 12 Jun 2023 18:05
by admin
Works well here and ticking "Show name length while renaming" makes no difference. I'm on Win8.1 currently. What's yours?

Re: Renaming folders with a long name in the tree pane can disrupt the name alignment

Posted: 12 Jun 2023 18:28
by jupe
I experience a similar thing in the Tree when the RHS divider/scrollbar is in the way, it is like it center aligns the inline rename field, so the typed chars are out of view, Win10@120%

2023-06-13_022355.png

Re: Renaming folders with a long name in the tree pane can disrupt the name alignment

Posted: 12 Jun 2023 18:49
by admin
And ticking "Show name length while renaming" makes a difference?

Re: Renaming folders with a long name in the tree pane can disrupt the name alignment

Posted: 12 Jun 2023 18:55
by jupe
For me it works fine with that option disabled (which is my setting in my normal config) After further testing it seems the strlen box is redrawn ontop of the inline rename field. The typed chars go behind the len box and right arrow doesn't go to the end but End key does.

Re: Renaming folders with a long name in the tree pane can disrupt the name alignment

Posted: 12 Jun 2023 19:00
by admin
And this happens in the tree only, not the list?

Re: Renaming folders with a long name in the tree pane can disrupt the name alignment

Posted: 12 Jun 2023 19:05
by jupe
Yes, list seems fine, I also tried moving tree to the RHS and it was the same.

Re: Renaming folders with a long name in the tree pane can disrupt the name alignment

Posted: 12 Jun 2023 19:50
by daniel_m
I am on Windows 10 too (100% scaling).

Re: Renaming folders with a long name in the tree pane can disrupt the name alignment

Posted: 13 Jun 2023 08:00
by admin
I saw it now. It's only in Win10 (and probably 11) and only in the compiled code (this is a rare thing to happen and makes it a PITA to debug). I'll look into it later.

Re: Renaming folders with a long name in the tree pane can disrupt the name alignment

Posted: 13 Jun 2023 12:46
by admin
Got it! Next beta. :beer:

Re: Renaming folders with a long name in the tree pane can disrupt the name alignment

Posted: 13 Jun 2023 16:48
by daniel_m
Thanks a lot for fixing this. I downloaded v24.50.0012, and renaming works perfectly fine now.