From 6c84ce3b499d2cd1e6a31235eab6e53500ae5507 Mon Sep 17 00:00:00 2001 From: Iam Naughton Phier Date: Sun, 22 Feb 2015 16:52:53 +0200 Subject: [PATCH] column mode works; off by 1 --- sahli.coffee | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sahli.coffee b/sahli.coffee index e607ae4..2ac6b7b 100644 --- a/sahli.coffee +++ b/sahli.coffee @@ -256,10 +256,15 @@ class @Sahli outer.addClass 'nosb' $('#panel').append outer $('#outbox').toggle() + canvs.width Math.floor fw/numcols + level = 0 + drawcol = 1 for pic in canvs - $('#column1').append pic - - + $("#column#{drawcol}").append pic + level = level + pic.height + if level > fh + level = 0 + drawcol = drawcol + 1 else $('.scrolly').width @origwidth