1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 06:10:06 -04:00

Keep window title and collapsing headers on one line

This commit is contained in:
Emil Ernerfeldt
2020-05-08 17:16:32 +02:00
parent 570215df9a
commit 702e135f07
6 changed files with 114 additions and 52 deletions

View File

@@ -127,7 +127,7 @@ impl<'a> Widget for Slider<'a> {
let slider_response = columns[0].add(slider_sans_text);
// Place the text in line with the slider on the left:
columns[1].set_height(slider_response.rect.height());
columns[1].set_desired_height(slider_response.rect.height());
columns[1].horizontal(|region| {
region.set_align(Align::Center);
region.add(Label::new(full_text).multiline(false));