mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-24 11:31:28 +01:00
Keep rail footer controls compact
This commit is contained in:
1 file changed
+3
-2
@@ -4,7 +4,7 @@
|
||||
use super::hide::{self, Shown};
|
||||
use crate::contract::overlay::{PlacementChange, PlacementKind};
|
||||
use crate::contract::{
|
||||
Bind, BindMut, BodyCx, Cx, Entry, Lazy, NoValue, Outcome, Pad, Pointer as _, Props as _, ShowContainer as _, Sizing, WordSetCx as _,
|
||||
Bind, BindMut, BodyCx, Cx, Entry, Gap, Lazy, NoValue, Outcome, Pad, Pointer as _, Props as _, ShowContainer as _, Sizing, WordSetCx as _,
|
||||
};
|
||||
use crate::docking::SplitFramesCx as _;
|
||||
use crate::docking::stack::{StackSection, StackSections, section_heights};
|
||||
@@ -1054,7 +1054,8 @@ impl<P: Clone + Eq + Hash + Debug + Send + Sync + 'static> Pass<'_, P> {
|
||||
.id(dock.with(("rail footer", panel)))
|
||||
.pad(Pad::None)
|
||||
.footer(|ui, _| {
|
||||
Stack::new().fill_width().show(ui, |ui, body| pass.borrow_mut().panels.rail_footer(panel, ui, body));
|
||||
// Compact rail controls leave room for the scrolling panel icons in short windows.
|
||||
Stack::new().fill_width().gap(Gap::None).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());
|
||||
|
||||
Reference in new issue
Block a user