Skip to content
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

Increase max thread pane size after a certain point #71

Merged
merged 1 commit into from
Sep 19, 2020

Conversation

seifferth
Copy link
Contributor

This is a proposal to solve the thread pane display on hidpi
screens. Cf. #60. It
will use the previous maximum of 8 rows for the thread pane
for terminal sizes of up to 40 rows. For larger terminals it
will use 1/5 of the terminal size as the maximum. As it happens,
8/40 = 1/5, which ensures a seamless switch between the two.
Switching back to relative size at a certain point removes all
hard limits on the maximum thread pane size.

This is a proposal to solve the thread pane display on hidpi
screens. Cf. <wangp#60>. It
will use the previous maximum of 8 rows for the thread pane
for terminal sizes of up to 40 rows. For larger terminals it
will use 1/5 of the terminal size as the maximum. As it happens,
8/40 = 1/5, which ensures a seamless switch between the two.
Switching back to relative size at a certain point removes all
hard limits on the maximum thread pane size.
@wangp
Copy link
Owner

wangp commented Sep 14, 2020

It looks reasonable.

The larger size does make it more obvious that the code to keep the cursor in the middle of the thread pane needs to be a bit smarter :)

@seifferth
Copy link
Contributor Author

The larger size does make it more obvious that the code to keep the cursor in the middle of the thread pane needs to be a bit smarter :)

True. Maybe one could limit the maximum number of empty rows to 4 or something? But I guess that would be another issue.

@wangp wangp merged commit 4423bfb into wangp:master Sep 19, 2020
@wangp
Copy link
Owner

wangp commented Sep 19, 2020

Merged this one, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants