Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Instances of group-box-panel% fail to show inside some panels in Windows

未关闭
#271 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
领域
desktop

调研方向

从提供的 #lang racket/gui reproducer 开始,在 Windows 上运行它,比较两种 vertical-panel 配置以及 Linux 或 macOS 上的行为。调查 group-box-panel% 与 auto-vscroll 之间的交互;完成的标准是 group box 显示在可滚动的 vertical-panel 内,同时 message% 和其他平台上的行为不受影响。

由索引模型根据 Issue 内容生成。

描述

The following example reproduces an inconsistency in the behavior of (at least) the combination of auto-vscroll and group-box-panel% between Windows and the other two platforms.

In macOS and Linux, group-box-panels show as expected when placed inside a vertical-panel, regardless of the style parameters of the vertical-panel.

In Windows, the group-box-panel fails to show when the parent vertical-panel has auto-vscroll as one of the style parameters.

Any other widgets inside the problematic panel (such as message% or button%) seem to behave as expected in all platforms.

What version of Racket are you using?
8.5 [cs]

What program did you run?
This short program reproduces the bug. See the attached Linux and Window screenshots for further comparison.

#lang racket/gui

(define test-frame-1 (new frame% [label "Test with auto-vscroll"] [width 512] [height 512]))
(define parent-frame-1 (new vertical-panel% [parent test-frame-1] [style '(auto-vscroll)]))
(define group-box-panel-1 (new group-box-panel% [parent parent-frame-1] [label "Hello world"]))
(define test-message-1 (new message% [parent parent-frame-1] [label "Test message"]))
(send test-frame-1 show #t)

(define test-frame-2 (new frame% [label "Test without auto-vscroll"] [width 512] [height 512]))
(define parent-frame-2 (new vertical-panel% [parent test-frame-2]))
(define group-box-panel-2 (new group-box-panel% [parent parent-frame-2] [label "Hello world"]))
(define test-message-2 (new message% [parent parent-frame-2] [label "Test message"]))
(send test-frame-2 show #t)

Ubuntu screenshot
Windows screenshot

主要语言
Racket
星标
68
派生
83
平均合并
9 天 8 小时
30 天内合并 PR
4

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

racket/gui 的其他 Issue

查看 racket/gui 的全部 Issue

相似的 Issue

更多 Desktop Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。