Shopify / dashing

The exceptionally handsome dashboard framework in Ruby and Coffeescript.
http://shopify.github.com/dashing/
MIT License
10.97k stars 1.18k forks source link

How to leave blank space between widgets #745

Open alpha-qu opened 7 years ago

alpha-qu commented 7 years ago

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 :)

Diluke commented 7 years ago

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]