column mode works; off by 1
This commit is contained in:
parent
41681d651d
commit
6c84ce3b49
1 changed files with 8 additions and 3 deletions
11
sahli.coffee
11
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue