1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

Reorder some functions in Region

This commit is contained in:
Emil Ernerfeldt
2020-05-01 09:35:44 +02:00
parent b73fbb33d8
commit f97dcdc9b5
4 changed files with 233 additions and 226 deletions

View File

@@ -448,7 +448,8 @@ impl<'a> Widget for Slider<'a> {
columns[1]
.desired_rect
.set_height(slider_response.rect.height());
columns[1].horizontal(Align::Center, |region| {
columns[1].horizontal(|region| {
region.align = Align::Center;
region.add(Label::new(full_text).multiline(false));
});