Page 1 of 1
same size with one click
Posted: 24 May 2024 17:05
by 7iben
Hello, is there a way to make the tab on the left and the one on the right the same size with one click? Or is there a script for this? Many thanks in advance.
Re: same size with one click
Posted: 27 May 2024 12:53
by admin
Do you mean the size of the lists in Dual Pane? If yes, double-click the splitter between them.
Re: same size with one click
Posted: 30 May 2024 10:51
by 7iben
When I double click on the splitter the right field shrinks to the right instead of making both fields the same size. Maybe I have set something wrong?
Bildschirmfoto 2024-05-30 um 10.46.41.png
Re: same size with one click
Posted: 30 May 2024 10:52
by admin

Not here

Re: same size with one click
Posted: 31 May 2024 02:28
by jupe
The splitter is the divider between panes not the toolbar button, if that was what you were dbl clicking on. Here is a script to do it if you want:
setlayout("Pane1<get #801 Height Width>=!");
Re: same size with one click
Posted: 31 May 2024 08:36
by admin
Wow, sometimes the power of scripting surprises (even) me.

Re: same size with one click
Posted: 01 Jun 2024 09:50
by Daniel0312
@Jupe
works great indeed.
I just don't see how it works.
I understand that "For Boolean values (0 or 1) you can pass "!" to mean "toggle". But Pane1Width or Height just aren't boolean.
Could you please explain ?
Re: same size with one click
Posted: 01 Jun 2024 15:10
by 7iben
Re: same size with one click
Posted: 02 Jun 2024 01:06
by jupe
When any positive number is inverted the return is 0, so I could have chosen to write it as =0 since that is what is actually being sent, which is technically an invalid input, so XY sets the default size which is 50/50.
Re: same size with one click
Posted: 02 Jun 2024 08:54
by Daniel0312
Thanks @jupe, never would have worked it out myself.
Re: same size with one click
Posted: 31 Mar 2025 21:18
by Malarki
I have the same issue as user 7iben (the OP) showed. But rather than install a script I want to restore my XY to its previous / ::fresh behavior.
In a ::fresh instance now (and the way I remember and want), double-clicking on the splitter sets both panes to equal width.
But in my customized instance it minimizes the right-side pane, as 7iben showed. So I've somehow broken this action.
I can't figure out what setting or tweak controls this. I've checked all Custom Event Actions and the possibly relevant tweaks in the .INI file. They're either the same as the ::fresh instance or changing them has no effect on this issue.
--> Any ideas on what setting or tweak could be involved?
Thanks.
XY ver 27.00.0005 / Windows 10 x64
Re: same size with one click
Posted: 02 Apr 2025 20:59
by jupe
I am betting you both probably have this enabled:
Panes | Swap Panes
@Don: This looks to be a bug
>>>>>> Moved topic to Bug Reports
Re: same size with one click
Posted: 02 Apr 2025 22:05
by Malarki
Thanks, Jupe, you're right - I have Swap Panes checkmarked. Must have done that for some job long ago and forgotten it.
With Swap Panes unchecked a double-click on the splitter works as I want: it centers the splitter between the two panes, making them equal sized.
Re: same size with one click
Posted: 05 Apr 2025 10:36
by admin
jupe wrote: ↑02 Apr 2025 20:59
I am betting you both probably have this enabled:
Panes | Swap Panes
@Don: This looks to be a bug
>>>>>> Moved topic to Bug Reports
Yep.

Fix comes.