Sample content constrained to 600px MaxHeight in Normal visual state

オープン
#301 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp
領域
frontend

調査の方向性

参照されている行で CommunityToolkit.App.Shared/Renderers/ToolkitSampleRenderer.xaml を開き、Sample Gallery を実行します。MarkdownTextBlock Custom Theme Sample で問題を再現し、背の高いオプションペインと併せて Normal visual state を確認します。完了条件は、サンプルの内容が人為的にクリップされず、その高さの動作が期待されるオプションペインのレイアウトと一致することです。

索引モデルが issue の本文から書いたものです。

説明

bug :bug:

Describe the bug

The sample hosting framework applies a hardcoded MaxHeight constraint of 600 pixels to sample content in the "Normal" visual state. This causes sample content to be artificially cut off when the options pane is taller than the sample content area.

Steps to reproduce

  1. Open the Sample Gallery application
  2. Navigate to a sample that uses [ToolkitSampleOptionsPane] with a tall options pane (e.g., MarkdownTextBlock Custom Theme Sample)
  3. Observe that the sample content area is constrained to 600px height even when the options pane is significantly taller
  4. The sample content appears cut off at the bottom

Problematic code: ToolkitSampleRenderer.xaml#L26

Expected behavior

MaxHeight should be applied to both the sample content and the sample options pane.

Worth also trying a MinHeight instead to allow it to expand without taking all available height.

Code Platform

  • UWP
  • WinAppSDK / WinUI 3

Device form factor

  • Desktop

Additional context

Found during review of https://github.com/CommunityToolkit/Labs-Windows/pull/761#pullrequestreview-3633778180

Image
主要言語
C#
スター
57
フォーク
20
PR マージ指標
30日以内にマージされた PR はありません

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CommunityToolkit/Tooling-Windows-Submodule のほかの issue

CommunityToolkit/Tooling-Windows-Submodule の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。