Shopify/dashing

How to leave blank space between widgets

Opened this issue · 1 comments

Unable to leave blank space between widgets. If I specify the widgets as follows:
widget1 widget2 widget3 widget4
widget5 widget6
widget7 widget8 widget9 widget10
widget11 widget12 widget13 widget14

It will be automatically convert into this:
widget1 widget2 widget3 widget4
widget5 widget6 widget9 widget10
widget7 widget8 widget13 widget14
widget11 widget12

I mean to say that the widgets will get repositioned and push themselves so that no space is remaining in between. I don't want this feature. How to remove it?
Thanks in advance :)

You can set widgets in data-row and data-col in your dashboard file dashboards/*****.erb, like it's used in sample.

< li data-row="1" data-col="2" data-sizex="1" data-sizey="1" \>

This widget will be put in first row, and second column
Remember to remove script (Dashing.gridsterLayout) from your dashboard if you have any, it's overwriting positions on dashboard load.

You can change widget margins in assets/javascripts/application.coffee

Dashing.on 'ready', ->
  Dashing.widget_margins ||= [5, 5]