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

Offen
#128 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
rust

Rechercherichtung

Reproduziere das Problem in einem größenveränderbaren Window mit einem Plot, einem bar_chart und einem zusätzlichen button, wobei du zuerst den neuesten main anhand des beschriebenen Cargo.toml-Patches überprüfst. Verfolge, wie Plot und BarChart ihre Größe neben dem button oder in einem horizontalen Layout bestimmen. Als erledigt gilt die Aufgabe, wenn sich das Diagramm nicht mehr auf die maximale Höhe oder Breite ausdehnt, während das andere Steuerelement weiterhin nutzbar bleibt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Rust
Sterne
494
Forks
110
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus emilk/egui_plot

Alle Issues in emilk/egui_plot

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.