emilk / emilk/egui

Bug with Window and nested layout

Open
#575 3 comments 4 reactions 0 assignees View on GitHub
layout
Dominant language
Rust
Stars
30.6k
Forks
2.1k
Avg merge
1d 12h
Merged PRs (30d)
67

Description

```rust
Window::new("test").show(ctx, |ui| {
ui.with_layout(Layout::bottom_up(Align::LEFT), |ui| {
ui.with_layout(Layout::right_to_left(), |ui| {
ui.label("footer");
});

ui.label("content");
});
});
```
This code makes the window expand in height at each redraw. Also the footer gets expanded so much that the content is pushed into the window header.

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.