emilk / emilk/egui_plot

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

Open
#128 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
468
Forks
108
Avg merge
15m
Merged PRs (30d)
3

Description

**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`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.