git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/2] fix resize issues on large screens

From
GMGeorg Müller <georgmueller@gmx.net>
Date
Jul 8, 2023, 10:55 UTC
Message-ID
<20230708105546.2945446-2-georgmueller@gmx.net>

When opening gitk in a multi-monitor setup with different resolutions, the resize factor causes the first columns of the layout get bigger and bigger while the other columns (author, date in upper pane, file list in lower pane) shrink to a minimum size.

The following setup triggers the problem on Fedora 38/Gnome 44:
* primary screen 1 has a FHD resolution (1920x1080)
* secondary screen 2 has a QHD resolution (2560x1440)

Every time gitk opens at screen 2, the resize is triggered and the columns are shifted 1.33x to the right (2560/1920 = 1.33). After multiple rounds of closing/opening gitk, the columns are at their minimum size and the contents are not visible or only a minimum is visible.

The following patches are two approaches to fix the problem. Maybe the hard-coded values could be variables, this is a first shot to solve the problem.

Georg Müller (2):
  gitk: limit factor scaling on resize to widths below 1900px
  gitk: keep author and date colums to a minimal width on resize
 gitk-git/gitk | 24 ++++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)

-- 2.41.0

Next: Georg Müller
Message 1 of 5 in “fix resize issues on large screens”
  1. 0/2 fix resize issues on large screensGeorg Müller, Jul 8, 2023
  2. 1/2 gitk: limit factor scaling on resize to widths below 1900pxGeorg Müller, Jul 8, 2023
  3. 2/2 gitk: keep author and date colums to a minimal width on resizeGeorg Müller, Jul 8, 2023
  4. Johannes SixtJul 10, 2023
  5. Georg MüllerJul 10, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.