* Render appearance: click, drag and paint to assign, Pick Up, copy and paste, and Remove * Exclude the workspace Shots strip from dialog width checks * Exclude the collapsed Shots control from dialog width checks * Retain assembly cache listings and measure actual dialog bounds * fix: handle toast button rectangles in assignment status * fix: restrict gallery note measurement helper to tests * test: measure assignment help at the catalogue footer * fix: share the command revision snapshot after restacking
This commit is contained in:
@@ -143,10 +143,19 @@ pub(crate) fn panel_bounds(app: &SolveApp, mut available: Rect) -> Rect {
|
||||
available
|
||||
}
|
||||
|
||||
/// One source of occlusion for navigation, picking, overlays and fit.
|
||||
/// One source of occlusion for navigation, picking and overlays.
|
||||
pub(crate) fn covered_rects(app: &SolveApp) -> Vec<Rect> {
|
||||
occluding_rects(app, false)
|
||||
}
|
||||
|
||||
/// Selection controls follow the projected model, so they must not influence its fit.
|
||||
pub(crate) fn fit_rects(app: &SolveApp) -> Vec<Rect> {
|
||||
occluding_rects(app, true)
|
||||
}
|
||||
|
||||
fn occluding_rects(app: &SolveApp, fitting: bool) -> Vec<Rect> {
|
||||
let mut rects = Vec::new();
|
||||
rects.extend(app.shell.workspace_panels.values().map(|(rect, _)| *rect));
|
||||
rects.extend(app.shell.workspace_panels.iter().filter(|(id, _)| !fitting || **id != "render:selection").map(|(_, (rect, _))| *rect));
|
||||
if crate::render_workspace::active(app) || Container::for_layout(app.ui.layout, Surface::Panel).floating() {
|
||||
rects.extend(app.shell.cards.iter().copied());
|
||||
rects.extend(app.shell.panels.iter().copied());
|
||||
|
||||
Reference in New Issue
Block a user