diff options
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -747,11 +747,13 @@ function layout_available(list, dx, x0, y0) { let y = 1650 + 45 - y0 let x = 25 + x0 for (let item of list) { - item.style.left = x + "px" + let xo = item.my_id % 6 + if (list.length < 6) + xo -= 1 + item.style.left = (x + xo * dx) + "px" item.style.top = y + "px" item.style.zIndex = 1 item.my_stack = 0 - x += dx } } |