chiark / gitweb /
organise: hanging: Show more clearly, whole of card ident
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 6 Apr 2021 19:56:54 +0000 (20:56 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 6 Apr 2021 19:57:02 +0000 (20:57 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/organise.rs

index 643ef27a3e2827baea9ef7cf2517c40c933ef9cd..f7c7789fd1cccff79c62a66e93d5f11c392bca64 100644 (file)
@@ -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))?,
     }
   }
 }