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

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
daniel_m
Posts: 233
Joined: 11 Apr 2010 11:47
Location: Windows 10 Pro 22H2, scaling 100%

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

Post 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.
To see the attached files, you need to log into the forum.
Last edited by daniel_m on 13 Jun 2023 16:48, edited 1 time in total.
XYplorer x64 (often the latest beta), Windows 10 Pro 22H2, 3840x2160 scaling 100%

admin
Site Admin
Posts: 66573
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post by admin »

I cannot really see it here. What is your screen resolution, 125%?

daniel_m
Posts: 233
Joined: 11 Apr 2010 11:47
Location: Windows 10 Pro 22H2, scaling 100%

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

Post 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. :?:
XYplorer x64 (often the latest beta), Windows 10 Pro 22H2, 3840x2160 scaling 100%

admin
Site Admin
Posts: 66573
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post by admin »

"...after deleting my Data folder"? To try a fresh instance just use fresh; in the address bar.

daniel_m
Posts: 233
Joined: 11 Apr 2010 11:47
Location: Windows 10 Pro 22H2, scaling 100%

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

Post 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)
XYplorer x64 (often the latest beta), Windows 10 Pro 22H2, 3840x2160 scaling 100%

admin
Site Admin
Posts: 66573
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post by admin »

Works well here and ticking "Show name length while renaming" makes no difference. I'm on Win8.1 currently. What's yours?

jupe
Posts: 3462
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

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

Post 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
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 66573
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post by admin »

And ticking "Show name length while renaming" makes a difference?

jupe
Posts: 3462
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

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

Post 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.

admin
Site Admin
Posts: 66573
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post by admin »

And this happens in the tree only, not the list?

jupe
Posts: 3462
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

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

Post by jupe »

Yes, list seems fine, I also tried moving tree to the RHS and it was the same.

daniel_m
Posts: 233
Joined: 11 Apr 2010 11:47
Location: Windows 10 Pro 22H2, scaling 100%

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

Post by daniel_m »

I am on Windows 10 too (100% scaling).
XYplorer x64 (often the latest beta), Windows 10 Pro 22H2, 3840x2160 scaling 100%

admin
Site Admin
Posts: 66573
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post 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.

admin
Site Admin
Posts: 66573
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post by admin »

Got it! Next beta. :beer:

daniel_m
Posts: 233
Joined: 11 Apr 2010 11:47
Location: Windows 10 Pro 22H2, scaling 100%

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

Post by daniel_m »

Thanks a lot for fixing this. I downloaded v24.50.0012, and renaming works perfectly fine now.
XYplorer x64 (often the latest beta), Windows 10 Pro 22H2, 3840x2160 scaling 100%

Post Reply