mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 03:17:43 +00:00
Constrain dock rail icons above footer
This commit is contained in:
@@ -1057,7 +1057,7 @@ impl<P: Clone + Eq + Hash + Debug + Send + Sync + 'static> Pass<'_, P> {
|
||||
Stack::new().fill_width().show(ui, |ui, body| pass.borrow_mut().panels.rail_footer(panel, ui, body));
|
||||
})
|
||||
.show_at(ui, cell, |ui, _| {
|
||||
let (rect, _) = ui.allocate_exact_size(Vec2::new(ui.available_width(), height), egui::Sense::hover());
|
||||
let (rect, _) = ui.allocate_exact_size(Vec2::new(ui.available_width(), height.min(ui.available_height())), egui::Sense::hover());
|
||||
draw(ui, rect, open.clone())
|
||||
})
|
||||
.inner
|
||||
|
||||
Reference in New Issue
Block a user