Skip to content

Make some columns of the server list view resizable #866

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 20, 2025

Conversation

itagagaki
Copy link
Member

This patch is to fix #507.
However, there is one problem - it is possible to expand out of the view.

However, there is one problem - it is possible to expand out of the view.
@itagagaki
Copy link
Member Author

Plan changes. Please hold.

There are still improvements to be made regarding the behavior during and after changing the window width. It is a bit tricky though. I think this is good enough for now.
@itagagaki
Copy link
Member Author

Done. Please check.

<ColumnDefinition Width="200" SharedSizeGroup="Tags"></ColumnDefinition>
<ColumnDefinition Width="Auto" SharedSizeGroup="BriefNote" MinWidth="50"></ColumnDefinition>
<ColumnDefinition Width="{Binding NameWidth}" SharedSizeGroup="Name" MinWidth="50"
MaxWidth="{Binding NoteWidth, Converter={StaticResource NameMaxWidthConverter}}"></ColumnDefinition>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MaxWidth="{Binding NoteWidth, Converter={StaticResource NameMaxWidthConverter}}"
MaxWidth="{Binding NameWidth, Converter={StaticResource NoteMaxWidthConverter}}"

It looks like the two binding target are written in reverse.

Copy link
Member Author

@itagagaki itagagaki Feb 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, because NameMaxWidthConverter needs NoteWidth to determine MaxWidth for Name.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah ok i see.

@VShawn VShawn added the general-ux General area: User eXperience label Feb 19, 2025
@VShawn VShawn added this to the NEXT milestone Feb 19, 2025
@VShawn VShawn merged commit e74cb3e into 1Remote:main Feb 20, 2025
@VShawn VShawn modified the milestones: NEXT, 1.2.0 Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
general-ux General area: User eXperience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adjustable column width in the list view
2 participants