From: Ian Jackson Date: Tue, 6 Apr 2021 19:56:54 +0000 (+0100) Subject: organise: hanging: Show more clearly, whole of card ident X-Git-Tag: otter-0.5.0~141 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=374cef72a29aaa8f05a4e63a28c0a39496e08d80;p=otter.git organise: hanging: Show more clearly, whole of card ident Signed-off-by: Ian Jackson --- diff --git a/src/organise.rs b/src/organise.rs index 643ef27a..f7c7789f 100644 --- a/src/organise.rs +++ b/src/organise.rs @@ -10,6 +10,8 @@ use crate::prelude::*; const MARGIN_INSIDE: Coord = 1; const HANG_INSIDE: Coord = 2; +const HANG_TILE_SHOW: Pos = PosC::new(4,8); + const INTUIT_SORT_Y_THRESH: Coord = 2; #[throws(InternalError)] @@ -84,7 +86,7 @@ impl Attempt { A::Inside | A::Abut => (bbox.tl() - bbox.tl().map(|v| v/ 2 ))?, A::AbutCompr => (bbox.tl() - bbox.tl().map(|v| v/ 3 ))?, - A::Hanging => PosC::both(HANG_INSIDE), + A::Hanging => (HANG_TILE_SHOW - PosC::both(HANG_INSIDE))?, } } }