Juicy/juicy-tile-list

Sometimes gap is calculated incorrectly

Closed this issue · 0 comments

See tile 3 here:
gap_bug_html
Configuration:

{
  "gap": 25,
  "items": [
    {
      "name": "name",
      "background":"rgba(150,150,150,0.15)",
      "priority": 0.9,
      "gap": 0,
      "heightAuto": true,
      "width": 320,
      "items":[
            {
              "index": 0,
              "priority": 0.9,
              "height": 50,
              "width": 160
            },
            {
              "index": 1,
              "priority": 0.8,
              "height": 140,
              "width": 160
            }
      ]
    },
    {
      "index": 4,
      "priority": 0.79,
      "height": 115,
      "width": 160
    },
    {
      "index": 5,
      "priority": 0.61,
      "height": 25,
      "width": 160
    },
    {
      "index": 2,
      "priority": 0.7,
      "height": 140,
      "width": 160
    },
    {
      "index": 3,
      "priority": 0.6,
      "height": 50,
      "width": 160
    }
  ],
  "name": "root",
  "width": 539.703125,
  "heightAuto": true
}