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

Make Region::desired_rect private

This commit is contained in:
Emil Ernerfeldt
2020-05-05 02:55:31 +02:00
parent be93d5b0e0
commit 50d759d1b4
3 changed files with 46 additions and 12 deletions

View File

@@ -127,9 +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]
.desired_rect
.set_height(slider_response.rect.height());
columns[1].set_height(slider_response.rect.height());
columns[1].horizontal(|region| {
region.set_align(Align::Center);
region.add(Label::new(full_text).multiline(false));