BarChart (and maybe others) does not find a stable size in a resizable Window with other objects

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust

調査の方向性

Plot、bar_chart、および追加の button を含むサイズ変更可能な Window で問題を再現し、まず説明されている Cargo.toml パッチを使って最新の main を確認します。Plot と BarChart が button と並んだ場合、または水平レイアウトの場合に、どのようにサイズを決定するかを追跡します。もう一方のコントロールを引き続き使用できる状態で、チャートが最大の高さまたは幅まで拡張されなくなれば完了です。

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

説明

bug

Describe the bug
I have a BarChart which behaves well when it is on its own in a resizable Window. However, when adding something more, in this case a "Close"-button at the end (but I have tried different combinations of things), it just resizes to maximum height (the button is there, but cannot really be seen...). If I put the BarChart in a horizontal it will to to full width instead, even if the button is not in the horizontal.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Window
  2. Create a Plot
  3. Show a BarChart in the Plot using bar_chart
  4. Show something else in the Window, in addiiton to the Plot, e.g.. a button

Expected behavior
It does not resize to maximum height/width.

Screenshots
https://github.com/user-attachments/assets/d4903a0e-50e1-4bce-9bde-37ec905b2509

Additional context
Have not tried any other things in Plot.

主要言語
Rust
スター
494
フォーク
110
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

emilk/egui_plot のほかの issue

emilk/egui_plot の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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