racket / racket/gui

racket/gui: Multi-line message% fields add extra space on the bottom on Windows.

Open
#304 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Racket
Stars
68
Forks
82
PR merge metrics
No merged PRs in 30d

Description

This Racket application ...

#lang racket/gui

(define the-dialog
  (new dialog% [label "quux"]))

(new message%
     [label "Es\nwar\neinmal\nvor\nlanger\nZeit"]
     [parent the-dialog])

(send the-dialog show #t)

... gives different results on Windows and OpenBSD.

The OpenBSD version (not supplied by me) looks like this ("as expected", one could say):

ergebnis

On Windows, there are additional spaces, one more with every line of text:

qwixpcv

One of them is probably wrong.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the provided #lang racket/gui example on Windows and OpenBSD, then compare the multi-line message% layout shown in the linked screenshots. Trace the message% layout behavior that produces the extra bottom spacing on Windows. Done means the sample no longer adds one extra space per line and remains consistent with the expected layout.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.