Describe the bug
SidePanel::right incorrectly pads the right side of the panel when it has an exact_width set.
To Reproduce
The following update function roughly implements the screenshot below:
fn update(&mut self, ctx: &egui::Context, _: &mut eframe::Frame) {
egui::SidePanel::right("right").exact_width(100.).show(ctx, |ui| {
ui.label("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA");
});
egui::SidePanel::left("left").exact_width(100.).show(ctx, |ui| {
ui.label("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA");
});
egui::CentralPanel::default().show(ctx, |ui| { });
}
Screenshots
Desktop (please complete the following information):
Additional Information
As implied, the padding is correct when an exact_width is not given.
Describe the bug
SidePanel::rightincorrectly pads the right side of the panel when it has anexact_widthset.To Reproduce
The following
updatefunction roughly implements the screenshot below:Screenshots
Desktop (please complete the following information):
Additional Information
As implied, the padding is correct when an
exact_widthis not given.